MediaWiki:How To/PDFs

From McGough's Recipes
  • A user can display PDF files as an image, showing a single page at a time, like so: [[File:myPdfFile.pdf|page=1|600px]]. The page and size parameters are optional; the default page is page #1. Instead of a size-parameter, you can also use the thumb-parameter, with or without captions: [[File:myPdfFile.pdf|page=1|thumb|My PDF]].
  • Because PdfHandler extends ImageHandler, you can use all the arguments that you would for an Image -- for example: thumb, right/left, caption, border, link, etc.

If you would like to present a 2-page pdf, for example, do the following: [[File:myPdfFile.pdf|page=1]] [[File:myPdfFile.pdf|page=2]]

Example: [[File: <PDF> |page=##|center|1000px|link= <link to original file>]]

[[File:White_Pizza - Brussel_Sprouts.pdf|page=1|link=https://recipes.mcgoughm.com/w/images/9/93/White_Pizza_-_Brussel_Sprouts.pdf]]
[[File:White_Pizza - Brussel_Sprouts.pdf|page=2|link=https://recipes.mcgoughm.com/w/images/9/93/White_Pizza_-_Brussel_Sprouts.pdf]]