Fork me on GitLab

PDF.js for parsing and rendering pdf files over Web (HTML5)

PDF.js library is a great open source tool supported by Mozilla. It’s main purpose is to display PDF files over Web (HTML5). You can display files on the canvas or use a sample viewer that converts PDF documents into DOM elements. In this article, I’ll show how to create a simple PDF viewer using canvas and PDF.js.