DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pdfjs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:pdfjs [2017-09-21 15:35] 91.64.209.72plugin:pdfjs [2024-01-26 07:09] (current) akhzz
Line 6: Line 6:
 email      : solewniczak@rid.pl email      : solewniczak@rid.pl
 type       : syntax type       : syntax
-lastupdate : 2017-09-21 +lastupdate : 2020-06-29 
-compatible : Hrun, Detritus, Elenor Of Tsort, Frusterick Manners+compatible : Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
 conflicts  conflicts 
Line 16: Line 16:
 bugtracker : https://github.com/gkrid/dokuwiki-plugin-pdfjs/issues/ bugtracker : https://github.com/gkrid/dokuwiki-plugin-pdfjs/issues/
 sourcerepo : https://github.com/gkrid/dokuwiki-plugin-pdfjs/ sourcerepo : https://github.com/gkrid/dokuwiki-plugin-pdfjs/
-donationurl:  
 ---- ----
  
-Use local copy of [[https://mozilla.github.io/pdf.js/|pdfjs]] to embed pdf on wiki pages.+===== Description ===== 
 + 
 +This plugin uses a [[https://mozilla.github.io/pdf.js/|pdfjs]] viewer to embed pdf files on wiki pages.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
  
 Basic usage: Basic usage:
-<code>{{pdfjs>:ns:document.pdf}}</code>+  {{pdfjs>:ns:document.pdf}}
  
 Define height: Define height:
Line 34: Line 35:
 Define default zoom: Define default zoom:
   {{pdfjs> :ns:document.pdf?125}}   {{pdfjs> :ns:document.pdf?125}}
 +
 +===== Used on Sites =====
 +
 +[[https://prinzeisenherz.de/doku.php?id=tripwire_101_greatest_33_hal_foster|German Prince Valiant Encyclopedia]]
  
 ===== Syntax ===== ===== Syntax =====
-<code> 
-{{pdfjs [size] > id?zoom|title }} 
-</code> 
  
-  * **id** - media id +  {{pdfjs [size] > id?zoom|title }} 
-  * **size**(optional) - Size of embedded viewer.+ 
 +  * **id** -- media ID 
 +  * **size** //(optional)// -- size of embedded viewer
     * Default value is ''100%,300px'', which means 100% width and 300px height.     * Default value is ''100%,300px'', which means 100% width and 300px height.
-    * When one value is given it is assumed to be the height.  +    * When one value is given it is assumed to be the height. 
-  * **zoom** (optional) - default zoom value of the viewer. Possible values:+  * **zoom** //(optional)// -- default zoom value of the viewer.\\ Possible values:
     * auto     * auto
     * page-actual     * page-actual
Line 57: Line 61:
     * 300     * 300
     * 400     * 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 ===
 +
 +{{rss>https://github.com/gkrid/dokuwiki-plugin-pdfjs/commits/develop.atom date}}
 +
 +
 +===== Discussion =====
 +
 +[[https://github.com/gkrid/dokuwiki-plugin-pdfjs/issues]]
 +
  
plugin/pdfjs.1506000933.txt.gz · Last modified: 2017-09-21 15:35 by 91.64.209.72

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