-1

I need to open a pdf in android mobile device. For that ,I have add a 'test.pdf' pdf file in common folder and add plugin (Childbrowser ) in config.xml file (res/xml/config.xml). And again add childbrowser.js and cordova.js file in js folder .

And add a code to open a pdf file here--- window.open('./test.pdf','_system','location=yes'); But still exception is coming like that 'Target file is not available' andgive a path file.///data/data/ I want to load that test.pdf file in the android mobile and open that particular file . But it is not opening . Please suggest me a solution. Thanks

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
  • Take a look at these questions: - http://stackoverflow.com/questions/21155466/open-pdf-using-jquery-mobile - http://stackoverflow.com/questions/14444333/ibm-worklight-app-common-pdf-file-access – Idan Adar Mar 23 '14 at 19:00

1 Answers1

0

Unfortunately, Android does not support viewing PDFs out of the box in a WebView. Most results point to using Google Docs.

Here are some suggestions:

Community
  • 1
  • 1
Idan Adar
  • 44,156
  • 13
  • 50
  • 89