plugin:pdfjs
Table of Contents
PDF.js Plugin
Compatible with DokuWiki
- 2023-04-04 "Jack Jackrum" unknown
- 2022-07-31 "Igor" yes
- 2020-07-29 "Hogfather" yes
- 2018-04-22 "Greebo" yes
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}}
Used on Sites
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 throughCTRL+S
.
Development
Change Log
- handler fixes (2017-09-21 16:02)
- version upped (2017-09-21 15:23)
- closes #5 (2017-09-21 15:22)
- use internal dokuwiki media links resolver (2017-09-21 14:53)
- plugin.info (2017-08-10 21:34)
- licence (2017-05-25 23:40)
- turn off upload button fix #2 (2017-02-02 09:39)
- fix (2016-07-27 15:14)
Discussion
plugin/pdfjs.txt · Last modified: 2023-08-17 14:49 by michaelsy