0

I have been looking for some solutions for this, i got one here - Show PDF file in Android WebView using mozilla pdf.js Android API Level below 19

but then here he tries to open a local file, is there a way I can open files placed on my server.

Community
  • 1
  • 1

1 Answers1

0

You must enable CORS on your server http://enable-cors.org/server.html After that pdf.js could open file from your server as well as local file. Another way is to download file from server and open it locally.

Roman Zhukov
  • 506
  • 5
  • 8