plugin:pdfjs
This is an old revision of the document!
Table of Contents
PDF.js Plugin
Compatible with DokuWiki
Elenor Of Tsort
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Plugin works similary to gview but instead of using Google's Docs, it uses local copy of PDF.js. PDF.js is PDF renderer developed by Mozilla and implemented using native Web technologies. You can read more about it here: https://mozilla.github.io/pdf.js/.
Examples/Usage
Let's suppose you have a link (with small fileicon) to given online pdf document in your page source:
{{:ns:document.pdf}}
To show the document in the embedded viewer, change it as follows:
{{pdfjs>:ns:document.pdf}}
Some more complex example:
{{pdfjs 50%,200px > :ns:document.pdf}} {{pdfjs 400px> :ns:document.pdf|title}}
Syntax
{{pdfjs [size] > id|title }}
- id : DW media “id” of the online document to view.
- size : Size of embedded viewer.
- Default value is
100%,300px
, which means 100% width and 300px height. - When one value is given it is assumed to be the height.
plugin/pdfjs.1469625818.txt.gz · Last modified: 2016-07-27 15:23 by 77.252.177.208