DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pdfjs

Table of Contents

PDF.js Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" yes

plugin Show pdf files using PDF.js

Last updated on
2017-02-02
Provides
Syntax
Repository
Source

Tagged with embed, html5, pdf

Plugin works similarly 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.txt · Last modified: 2017-02-02 09:43 by solewniczak