Page 2 of 2

jsPDF not working on device

Posted: Wed Jul 20, 2016 10:29 am
by Terry Gilliver

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.


jsPDF not working on device

Posted: Wed Jul 20, 2016 11:12 am
by Terry Gilliver

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


jsPDF not working on device

Posted: Thu Jul 21, 2016 9:17 pm
by Illya Stepanov

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.


jsPDF not working on device

Posted: Thu Aug 04, 2016 8:43 am
by Terry Gilliver

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.