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" yes
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

plugin Embed PDF files using PDF.js

Last updated on
2017-09-21
Provides
Syntax
Repository
Source

Tagged with embed, html5, pdf

Use local copy of pdfjs to embed pdf on wiki pages.

Examples/Usage

Basic usage:

{{pdfjs>:ns:document.pdf}}

Define height:

{{pdfjs 200px > :ns:document.pdf}}

Define width and height:

{{pdfjs 200em,400px> :ns:document.pdf}}

Define default zoom:

{{pdfjs> :ns:document.pdf?125}}

Syntax

{{pdfjs [size] > id?zoom|title }}
  • id - media id
  • size(optional) - 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.
  • zoom (optional) - default zoom value of the viewer. Possible values:
    • auto
    • page-actual
    • page-fit
    • page-width
    • 50
    • 70
    • 100
    • 125
    • 150
    • 200
    • 300
    • 400
plugin/pdfjs.txt · Last modified: 2017-09-21 15:35 by 91.64.209.72