PWA open PDF file - Forum

Forum Navigation
You need to log in to create posts and topics.

PWA open PDF file

How can we open the PDF file in PWA?

I tried to like this but instead of opening it, it downloads the PDF file.

BEGINJS'Cover letter.pdf', '_system');


@asmat your code works for me in Chrome, Edge and FireFox (Desktop). I think you are facing the problem on Android.
Have you tried to show the PDF inside an IFrame object?
I'm not sure if it's even possible to show a PDF inside a WebView on Android...

asmat has reacted to this post.

Yes, the problem is only for android, I tried showing a PDF file inside Iframe but it seems impossible.

In the Cordova app, this task is very easy by using the file-opener2 plugin but in PWA, I don't know what should I do.



Uploaded files:
  • You need to login to have access to uploads.

@asmat take a look here:


Open chat
Do you need more info?
Hi, do you have any doubt?