Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening PDF files on android webview without using GoogleDocViewer

How to show pdf on Android webview from url without using GoogleDocViewer?

PDF url needs authentication, and url is working fine on browser but when i'm trying to open the same url in android webview, it is showing blank screen.

like image 784
user3217668 Avatar asked Jan 14 '16 09:01

user3217668


1 Answers

You can use mozilla's pdf.js.

Sample project on how you do it in Android. Sample project made by user Butelo.

As user LinX64 pointed out, this is only usable on android.os.Build.VERSION_CODES.JELLY_BEAN and above.

like image 184
Ludwig S Avatar answered Sep 22 '22 16:09

Ludwig S