Widget:Embed PDF

From Bogleheads
Jump to navigation Jump to search

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

A ".pdf" extension is appended to the link (URL) to ensure the browser interprets the file type as PDF.

Sample document

{{#widget:Embed PDF
|file=https://www.treasury.gov/about/organizational-structure/offices/Domestic-Finance/Documents/exec_sum
|width=500
|height=300
}}

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.