Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added some explanatory text

...

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).

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.
  • The PDF.js site provides a list of supported browsers that implementers may want to reference consult should there be rendering issues.