Issue
This question is relevant to all Android Chrome browsers I think, but in my case I am using the React-native WebView (which is compiling to the native webview in the app). I should add that this works fine on iOS because a URL which points to a PDF just loads that PDF in the browser.
So, I'm wondering whether there's a way to force the Chrome browser to load a PDF in the browser using a header?
Or, is there a URL that allows you to pass the PDF url in as a param? Some kind of proxy service.
Any ideas?
Solution
I solved this issue by using Google Docs to display the given pdf url. Just replace my_pdf_url with your pdf url.
https://docs.google.com/gview?embedded=true&url=my_pdf_url
Answered By - tnort173
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.