PDF Viewer Macro

Last modified by Thomas Mortagne on 2024/09/02 00:14

cogPDF Viewer Macro based on Mozilla's pdf.js
TypeXAR
CategoryMacro
Developed by

Sofiane Baloul, Ludovic Dubost, Denis Gervalle, Anca Luca, Raluca Stavro, Oana Tabaranu

Active Installs465
Rating
10 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

You can also try the Pro version: PDF Viewer Macro (Pro). The Pro PDF Viewer Macro allows you to display several PDFs using a tab system layout. It also includes an update of the PDF.js library version and improvements for external PDFs.

This PDF Viewer Macro allows to view pdf attached to XWiki page right inside the XWiki page. 

This package is based on pdf.js by andreasgal.
See http://mozilla.github.com/pdf.js for more information

It has been adapted and packaged specifically for this macro with some slight modifications.

PDFViewer.png

The viewer supports a double full screen mode (first going full screen in your browser and then going full screen on your computer if your browser supports that mode)

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

If the PDF is downloaded instead of displayed inline when using the Pdf Viewer Macro as below:

popup_pdf_viewer_macro.png

In this case you have to save the attachment pdfviewer.zip on the macro page with programming rights (this is a security feature to prevent XSS via FileUpload: http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki52#HChoosingwhichtypesofattachmentscanbedisplayedinline28Security29).

Release Notes

v1.7.2

The following translations have been updated with this release:

v1.7.1

The following translations have been updated with this release:

v1.7

The following translations have been updated with this release:

v1.6.3

v1.6.2

v1.6.1

v1.5

v1.4.1

v1.4

v1.3

 Starting with this version the wiki macro defined by this extension is no longer a global macro but a current wiki one.

v1.2

Get Connected