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-02-02 09:43] solewniczakplugin:pdfjs [2024-01-26 07:09] (current) akhzz
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Show pdf files using PDF.js+description: Embed PDF files using PDF.js
 author     : Szymon Olewniczak author     : Szymon Olewniczak
-email      : (My first name)@imz.re+email      : solewniczak@rid.pl
 type       : syntax type       : syntax
-lastupdate : 2017-02-02 +lastupdate : 2020-06-29 
-compatible : Elenor Of Tsort, Hrun+compatible : Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
 conflicts  conflicts 
Line 13: Line 13:
 tags       : pdf, embed, html5 tags       : pdf, embed, html5
  
-downloadurl: https://github.com/solewniczak/dokuwiki-plugin-pdfjs/archive/master.zip +downloadurl: https://github.com/gkrid/dokuwiki-plugin-pdfjs/archive/master.zip 
-bugtracker : https://github.com/solewniczak/dokuwiki-plugin-pdfjs/issues/ +bugtracker : https://github.com/gkrid/dokuwiki-plugin-pdfjs/issues/ 
-sourcerepo : https://github.com/solewniczak/dokuwiki-plugin-pdfjs/ +sourcerepo : https://github.com/gkrid/dokuwiki-plugin-pdfjs/
-donationurl: +
 ---- ----
  
-Plugin works similarly to [[gview]] but instead of using Google's Docs, it uses local copy of PDF.js. PDF.js is PDF renderer developed by Mozilla and implemented using native Web technologies. You can read more about it here: [[https://mozilla.github.io/pdf.js/]].+===== Description ===== 
 + 
 +This plugin uses [[https://mozilla.github.io/pdf.js/|pdfjs]] viewer to embed pdf files on wiki pages.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
  
-Let's suppose you have a link (with small fileicon) to given online pdf document in your page source+Basic usage
-<code>{{:ns:document.pdf}}</code>+  {{pdfjs>:ns:document.pdf}}
  
-To show the document in the embedded viewer, change it as follows+Define height
-<code>{{pdfjs>:ns:document.pdf}}</code>+  {{pdfjs 200px > :ns:document.pdf}} 
 +  
 +Define width and height: 
 +  {{pdfjs 200em,400px:ns:document.pdf}}
  
-Some more complex example:+Define default zoom: 
 +  {{pdfjs> :ns:document.pdf?125}}
  
-  {{pdfjs 50%,200px > :ns:document.pdf}} +===== Used on Sites ===== 
-  {{pdfjs 400px> :ns:document.pdf|title}}+ 
 +[[https://prinzeisenherz.de/doku.php?id=tripwire_101_greatest_33_hal_foster|German Prince Valiant Encyclopedia]]
  
 ===== Syntax ===== ===== Syntax =====
-<code> 
-{{pdfjs [size] > id|title }} 
-</code> 
  
-  * **id** : DW media "id" of the online document to view. +  {{pdfjs [size] > id?zoom|title }} 
-  * **size** : 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: 
 +    * 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 ===
  
 +{{rss>https://github.com/gkrid/dokuwiki-plugin-pdfjs/commits/develop.atom date}}
  
  
 +===== Discussion =====
  
 +[[https://github.com/gkrid/dokuwiki-plugin-pdfjs/issues]]
  
  
plugin/pdfjs.1486024998.txt.gz · Last modified: 2017-02-02 09:43 by solewniczak

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