This is a migrated thread and some comments may be shown as answers.

open pdf using jquery-mobile

1 Answer 218 Views
jQuery Mobile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aman
Top achievements
Rank 1
Aman asked on 26 Dec 2013, 10:25 AM
How to open  pdf file on the device using jqurey-mobile. I have tried the sample code given on icenium website for the same but it is not working on device.

1 Answer, 1 is accepted

Sort by
0
Pavel Kolev
Telerik team
answered on 27 Dec 2013, 03:26 PM
Hello Aman,

We've prepared and attached a sample project that I've tested with .pdf, docx, pptx, mp3 and mp4 file. Note that if you want to view external PDF file we are using the Cordova FileTransfer API to copy the file locally on the device and then open it with an app associated with this extension.

Be sure to change the URL, to the one you would like to test. There shouldn't be spaces in the path/filename of the PDF i.e. the one you provided would fail to open due to the space.

Regards,
Pavel Kolev
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
jQuery Mobile
Asked by
Aman
Top achievements
Rank 1
Answers by
Pavel Kolev
Telerik team
Share this question
or