...
Install as usual, see this for further information.
You also need to Download and install install the generic build of PDF.js to your and move the directory to sites/libraries/pdfjs folder, or run drush pdfjs-plugin
.
Note: If you use the Drush command, it is advisable to Move ensure that your .drush
directory contains the install script islandora_pdfjs.drush.inc
. If it doesn't, move (not copy) the install script to your.drush folder and run itscript from the islandora_pdfjs
module's root directory to your .drush
folder before you run the drush command.
Configuration
Currently the PDF.js viewer can be used as the viewer for :the PDF Solution Pack, Book Solution Pack, or Scholar.
- the 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)
This is how a PDF displays what the PDF frame looks like with the Islandora PDF.js viewer enabled.
...
- 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 file has been generated for 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)
- The PDF.js site provides a list of supported browsers that implementers may want to reference consult should there be rendering issues.