PDF.js is a Portable Document Format (PDF) viewer that is built with HTML5.
PDF.js is community-driven and supported by Mozilla Labs. The goal is to
general-purpose, web standards-based platform for parsing and rendering
Full documentation: https://github.com/mozilla/pdf.js
Note: Dont worry some time PDF Viewer is not working on chrome broswer in localhost, but it is working when pdf file is on web server.