User Tools

Site Tools


howto:linking_and_viewing_pdfs

This is an old revision of the document!


Linking and Viewing PDFs

There are many ways to link, view, or create PDF in Dokuwiki.

The first way to link to an external pdf is to use [[ ]] brackets as one would for links:

Code Result
[[https://bcarcc.org/twometre.pdf]] https://bcarcc.org/twometre.pdf
[[https://bcarcc.org/twometre.pdf|Two Metre Repeaters]] Two Metre Repeaters

This works, but notice the “Earth” icon on the left of the link, identifying that it's a link to an external webpage. We can change this identifying icon to a PDF by using the {{ }} brackets instead, which are also used for images:

Code Result
{{https://bcarcc.org/twometre.pdf}} twometre.pdf
{{https://bcarcc.org/twometre.pdf|Two Metre Repeaters}} Two Metre Repeaters

These brackets also work for internal files that are stored on our server (like images):

Code Result
{{:blog:2019-08-11:twometre.pdf |}} twometre.pdf
{{:blog:2019-08-11:twometre.pdf |Two Metre Repeaters}} Two Meter Repeaters

Using the PDF.js Plugin, it's also possible to display a local pdf in a window. For example,

{{pdfjs 600px,300px>:blog:2019-08-11:twometre.pdf}}

gives:

Note, that the width (600px) and length (300px) parameters are optional. Also, this doesn't work with external links.

Export Page To PDF

howto/linking_and_viewing_pdfs.1565562832.txt.gz · Last modified: 2019/08/11 15:33 by ve7hzf