4

I have created a website (still under development).

While I am directing to a PDF link in the mobile browser it is automatically being downloaded instead of opening in a new window like desktop browser.

How to make it open like desktop browser instead of automatic download?

1

2 Answers 2

4

buxik's answer from How to display a PDF via Android web browser without "downloading" first looks like a good solution:

You can open a file PDF in Google Docs Viewer by appending the URL to:

https://docs.google.com/gview?embedded=true&url=<URL of a supported doc>

This would open a PDF file in the default browser or a WebView.

A list of supported formats is given here

3

This is by design. Each app does one such function.I dont think its possible.

There is nothing you can do on your website. There may be browser that hss this function. But the common ones don't do this- Chrome, Firefox, Samsung, Quant etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.