DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pdfjs

PDF.js Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" yes

plugin Embed PDF files using PDF.js

Last updated on
2017-09-21
Provides
Syntax
Repository
Source
Conflicts with
medialist

Tagged with embed, html5, pdf

Donation

If you like this plugin or want to thank me for development of your requested features please consider buying me a coffee. Thank you ;-)

Description

This plugin uses a pdfjs viewer to embed pdf files 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

Development

Change Log

Releases

Discussion

plugin/pdfjs.txt · Last modified: 2018-04-14 13:29 by solewniczak