Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

jsPDF not working on device

I am beginning to suspect the device is behaving strangely. I have set location to yes in the InAppBrowser and it is showing what appears to be the correct uri for the pdf.

It begins:

[url=http://data:application/pdf;base64,JVBERio]http://data:application/pdf;base64,JV...[/url]...

I am guessing that this is the right uri format for a pdf file, so why isn't it being displayed?

I guess I need to test on another device, when i can get hold of one.

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

jsPDF not working on device

Just a quick thought, Evgene mentioned Android permissions, could it be a permissions issue?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

jsPDF not working on device

Hi Terry -

You should keep in mind that third party connected Cordova plugins are not available in Appery.io Tester app - such things can be only tested on the device itself.
Give it a try on another Android device, will it works? -- Let us know the result.

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

jsPDF not working on device

I have tried on another Android device, and that doesn't work either. I have come to the conclusion that pdf/mobile compatibility is 'iffy'. My solution was to take the pdf, upload it to my rest server, which converts it to a jpg and sends it back to appery.io app. As an image it is easy to display on a page.

Sounds a bit convaluted, but I couldn't find any code samples in javascript to convert pdfs to images.

Return to “Issues”