You are here

README.txt in PDF 6

How to install

1. Use git (recommended because pdf.js is under active development) to check out pdf.js from https://github.com/mozilla/pdf.js to DRUPAL_HOME/sites/all/libraries/. OR download v0.1.0.zip from https://github.com/mozilla/pdf.js/tags and extract pdf.js directory to DRUPAL_HOME/sites/all/libraries/.

2. Make pdf.js file in the pdf.js/build directory by following the README.(might need to install Node.js for the command line to work) 
WARNING: pdf.js is a large file! Consider minifying it. Here is how to https://github.com/mozilla/pdf.js/issues/710#issuecomment-4080540 (need to download google compiler and execute minification in command line)

3. Enable pdf module and create a file field and there are two option to display PDF file in the field display setting. (You need to use the latest pdf.js to use first page display.) 

File

README.txt
View source
  1. How to install
  2. 1. Use git (recommended because pdf.js is under active development) to check out pdf.js from https://github.com/mozilla/pdf.js to DRUPAL_HOME/sites/all/libraries/. OR download v0.1.0.zip from https://github.com/mozilla/pdf.js/tags and extract pdf.js directory to DRUPAL_HOME/sites/all/libraries/.
  3. 2. Make pdf.js file in the pdf.js/build directory by following the README.(might need to install Node.js for the command line to work)
  4. WARNING: pdf.js is a large file! Consider minifying it. Here is how to https://github.com/mozilla/pdf.js/issues/710#issuecomment-4080540 (need to download google compiler and execute minification in command line)
  5. 3. Enable pdf module and create a file field and there are two option to display PDF file in the field display setting. (You need to use the latest pdf.js to use first page display.)