DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pdfjs

PDF.js Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" 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}}

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 through CTRL+S.

Development

Change Log

Discussion

plugin/pdfjs.txt · Last modified: 2024-01-26 07:09 by akhzz

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