0

I have downloaded a PDF file to the PhoneGap LocalFileSystem and am now trying to view it in ChildBrowser. I have done so like this;

    function viewOffline() {
        var files = pathToRoot + "/Holidays.pdf";
        window.plugins.childBrowser.showWebPage(files);
    }

When I run the app the ChildBrowser opens but it can't read the file. Is there like a .showFile thing I can use? I'm really new to ChildBrowser so any help would be much appreciated

Thanks a lot

Megan Sime
  • 1,257
  • 2
  • 16
  • 25

1 Answers1

1

I did a quick check and found out that you cannot open PDF files suing child browser. You need to use the PDFViewer plugin. This plugin is used only to display local PDF. When you display a PDF from an external URL, you should use InAppBrowser or ChildBrowser

Nishanth Nair
  • 2,975
  • 2
  • 19
  • 22