Widget:Embed PDF

This widget allows you to add Portable Document Format (PDF) documents to your wiki page.

Parameters

 * file: Link to the PDF file without the ".pdf" extension.
 * width: Embedded window width, default is 500px
 * height: Embedded window height, default height is 300px

Browser security
Depending on the source website, the web browser may refuse to show an embedded PDF.

In Firefox, a link to open the file in a new window will be shown.

Chrome will show an unhappy face (error) icon. If you don't see the PDF, hover your mouse over the box to show a "refused to connect" error.

The example below works correctly in Firefox and Chrome. Widget:Embed PDF should generate and show an in-line embedded PDF below:

Using the following code:

Widget internals
Widgets do not use parser functions. Instead, a template programming language known as "Smarty" is used. Refer to the Smarty 3 Manual for the details. 