Inappbrowser zoom on iOS


#1

Hi guys !

I need your help with the inapbrowser plugin.
I want to open a local PDF with inapbrowser (and it works), but i cant zoom on it. Everywhere on the net I see “EnableViewPortScale=yes” but it doesnt work.

Do you guys have an idea ? Thanks a lot !

<a ng-show="isiOS" href="#" onclick="window.open('mypdf.pdf','_blank','location=no, EnableViewPortScale=yes', 'closebuttoncaption=Return');">My PDF</a>

Zoom in to PDF using InAppBrowser
#2

Add this line in your confix.xml file:
…/platforms/ios/AppName/config.xml

Set EnableViewportScale value true. by default it has false.

 <preference name="EnableViewportScale" value="true"/>

I think it will work.


#3

Yes it does ! Thank you !