Fix for Issue #274

Fix metadata links in the pdf so that it works in the widgets and classic interface. Also it keeps the language of the interface that the pdf was created in.