Jump to content

Widget:PDF

From 313FILES
Revision as of 14:52, 10 March 2025 by Liability7973 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This widget lets you add any PDF file to your site. In case your browser does not support a PDF plugin a link to download the file will be shown instead.

Using this widget

To insert this widget, use the following code:

{{#widget:PDF
 |url=https://www.mediawikiwidgets.org/w/images/8/80/20171004_Beginners_tutorial_to_Semantic_MediaWiki.pdf
 |width=750
 |height=1050
}}


Parameters

  • url - URL of the PDF file being inserted
  • width - maximum width of the iframe (default is 960 for landscape format / set to 750 for portrait format )
  • height - minimum height of the iframe (default is 680 for landscape format / set to 1000 for portrait format )

Usually it is not required to add the height and width parameter for PDF files in landscape format since the display will resize automatically. If you do so it is recommended to have a ration of 1.41 between width and height. However do use the parameters with recommended values for PDF files in the portrait format. This also will resize automatically.