Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implement pdf.js in Apache Cordova

I am trying to develop an Apache Cordova Application with Visual Studio 2013 for Android, using Typescript. I am unable to display my PDF. My program begins by downloading the PDF file to the Android Device from a website. After this though, I am unaware as to how to use pdf.js to display the downloaded PDF. I tried looking at the examples and implementing them on a HTML file in IE, but I've been unsuccessful with all attempts to display any kind of PDF, so a sample that works, but not on Android is also appreciated.

like image 357
user1624667 Avatar asked Jan 23 '26 07:01

user1624667


1 Answers

so a sample that works, but not on Android is also appreciated.

The PDF js hello world : http://mozilla.github.io/pdf.js/examples/learning/helloworld.html You can open it on android too.

like image 84
basarat Avatar answered Jan 25 '26 22:01

basarat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!