DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pdfjs

PDF.js Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" unknown
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes

plugin Embed PDF files using PDF.js

Last updated on
2020-06-29
Provides
Syntax
Repository
Source
Conflicts with
medialist

Tagged with embed, html5, pdf

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

Config

  • hide_download_button - This option hides the download button from a pdf viewer but the file can still be downloaded through CTRL+S.

Development

Change Log

Discussion

plugin/pdfjs.txt · Last modified: 2021-01-27 12:04 by solewniczak