1) Download the zip file from: https://github.com/mozilla/pdf.js/archive/master.zip and unzip http://yourhost/myfolder (or wherever you place it) ..
2) After extracting in the myfolder / web folder, open viewer.js and change DEFAULT_URL to example.pdf path.
3) open in your browser http://yourhost/myfolder/web/viewer.html
source share