

If you look in detail at the UI of the browser you will find that it is the same as in Mozilla Firefox, if you open the PDF in the browser.Ī demo version of the browser is available at this link. The library basically only allows us PDF files in the browser. Mozilla's PDF.js project is an open-source project licensed under the Apache 2 license, so it can be used in almost any application. I tried with iframe to display the document but it didn't work on mobile devices😔.Īfter some time of searching, I found a solution using the Mozilla PDF.js library😏.Ī general-purpose, web standards-based platform for parsing and rendering PDFs.

Yesterday I wondered how to display a PDF document on a website.
