Software Archive
Read-only legacy content
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
17065 Discussions

PDF not opening in intel xdk

prabhu_kumar_T_
Beginner
151 Views

Hi All ,

I am calling a website in my mobile app using cordova InAppBrowser plugin.

unable to view PDF available in website. i am using window.open to PDF's in website. working fine in website but not working from mobile app.

do i miss any thing ?

Please suggest and help.

Thanks in advance.

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
151 Views

A Cordova app is not a web browser and, therefore, does not have access to any of the browser features that many people take for granted. You are running in an HTML5 interpreter on the mobile device, known as a "webview" which is not a browser. In order to view a PDF in your app you need to download that PDF and then "ask" the PDF viewer on the mobile device to view that PDF (if a PDF viewer exists on that device) or you need to include a Cordova plugin or JavaScript library that can render and present a PDF image to the screen.

I recommend you search StackOverflow for something like "how to download and display PDF in a Cordova PhoneGap app" for detailed help.

Reply