DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pdfjs

This is an old revision of the document!


Table of Contents

PDF.js Plugin

Compatible with DokuWiki

Elenor Of Tsort

plugin Show pdf files using PDF.js

Last updated on
2016-07-27
Provides
Syntax
Repository
Source
Conflicts with
medialist

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with embed, html5, pdf

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki