How to open pdf file in popup using phonegap for ios

I am using phonegap for ios. I need to open a pdf file with an external URL as a popup. Here I used the InappBrowser plugin, which works fine, but it shows a full window. I need to show as a popup.

Here is the code using the InAppBrowser plugin:

        <a href="#" onclick="window.open('http://www.us-cert.gov/sites/default/files/publications/CloudComputingHuthCebula.pdf', '_blank', 'location=no');">Show PDF</a>
+4
source share
2 answers

use google doc viewer - best ex option:

window.open("http://docs.google.com/viewer?url=<place your doc location address>", '_blank', 'location=yes');

thats it.

+2
source

You can also use the FileOpener plugin for Cordoba.

0
source

Source: https://habr.com/ru/post/1529972/


All Articles