Issue
Would it be possible to use pdf.js to display a PDF file in Android WebView?
I know the common solution is to use google doc or launch an intent. However, I wish to open it in my app anyway.
It seems that pdf.js provide a pretty good solution to display pdf in browser. I want to know if I can do the same on Android. I want to download the pdf file to a temporary place first, and then display it in WebView.
Solution
Yes you can, if you can render something in your browser, in this case a webkit
based browser. you can do it in your webview too but will take much time than your desktop browser.
There is new api for PDF in Kit-Kat, am not sure if it can render a PDF file.
Answered By - VenomVendor
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.