You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 9
Next »
Introduction
An Islandora viewer module using Mozilla PDF.js.
Requirements
Installation
- Install the Islandora PDF.js module as usual, see this for further information.
- You also need to Download and install the generic build of PDF.js and move the directory to the sites/libraries/pdfjs directory, or run
drush pdfjs-plugin
.- Note: If you use the Drush command, ensure that your
.drush
directory contains the install script islandora_pdfjs.drush.inc
. If it doesn't, move (not copy) that script from the islandora_pdfjs
module's root directory to your .drush
folder before you run the drush command.
- This is what the PDF frame looks like with the Islandora PDF.js viewer enabled.
![](/download/attachments/69833521/pdfjs_viewer.png?version=1&modificationDate=1440095275171&api=v2)
Configuration
Currently the PDF.js viewer can be used as the viewer for the PDF Solution Pack, Book Solution Pack, Newspaper Solution Pack and Scholar Solution Pack.
- PDF Solution Pack
- Administration » Islandora » Solution pack configuration » PDF Solution Pack (admin/islandora/solution_pack_config/pdf).
![](/download/attachments/69833521/pdfjs_pdf_sp_config.png?version=1&modificationDate=1440095275165&api=v2)
- Book Solution Pack (both the book and the page object are options)
- Administration » Islandora » Solution pack configuration » Book Solution Pack (admin/islandora/solution_pack_config/book).
![](/download/attachments/69833521/book_sp-pdfjs.PNG?version=2&modificationDate=1508507868035&api=v2)
- Newspaper Solution Pack
- Administration » Islandora » Solution pack configuration » Newspapers (admin/islandora/solution_pack_config/newspaper).
![](/download/attachments/69833521/issue_pdfjs.JPG?version=1&modificationDate=1508508068841&api=v2)
- Scholar Solution Pack
- Administration » Islandora » Solution pack configuration » Scholar (admin/islandora/solution_pack_config/scholar).
![](/download/attachments/69833521/scholar_sp-pdfjs.PNG?version=1&modificationDate=1508500713191&api=v2)
Troubleshooting/Issues
- Ensure that the PDF.js library is installed in /sites/all/libraries/pdfjs
- If enabled as the default viewer for the Book Solution Pack, you need to ensure that there is a PDF datastream in the Book object.
- This PDF can be generated automatically at the time of ingest or you can manually upload your own PDF file to the Book object.
![](/download/attachments/69833521/book_sp_generate_pdf.png?version=1&modificationDate=1440095275141&api=v2)