Ionic 3 how to show a PDF in a page?

Dear friends,
I have a simple question.
How to show a PDF in a page? Any body please help with a sample code…


I think you’ll have to actually use a PDF viewer of sorts. If the PDF file lives on the web, then you can just use Google Doc’s viewer described here.

Not sure how to do it if the PDF is on the device’s filesystem though.

Probably the best approach is to use the PDF.JS library. It’s a pure HTML5/JavaScript renderer for PDF documents without any third-party plugins.