MohammedAli
MohammedAli

Reputation: 2519

how to open PDF URL into the app without downloading in ionic 5

i am already try with this plugin but no luck

how to achieve like this

enter image description here

https://ionicframework.com/docs/native/file-opener

https://ionicframework.com/docs/native/document-viewer

Upvotes: 1

Views: 6083

Answers (3)

plotnik
plotnik

Reputation: 432

You can use PDF.js component: https://mozilla.github.io/pdf.js/

Here is a video of PDF.js component wrapped as Appery.io plugin https://www.youtube.com/watch?v=JeEJl7K-2H0

Upvotes: 0

Hassan Ali
Hassan Ali

Reputation: 1029

You can also directly open the PDF by using window.open

window.open(this.URL + name +'.pdf');

It will work.

Upvotes: 0

Chandrakant Devani
Chandrakant Devani

Reputation: 336

Here is Ionic 5 Repo with PDF View without download

Ionic 5 With ng2-PDF-Viewer

How to run :

  1. Clone Project
  2. npm i
  3. npm start

For More set PDF Options

ng2-pdf-viewer

Upvotes: 1

Related Questions