Page 2 of 2

Open a local PDF in iOS and Android

Posted: Wed Mar 26, 2014 1:52 pm
by Maryna Brodina

Hello!
Working on it.


Open a local PDF in iOS and Android

Posted: Thu Mar 27, 2014 1:01 pm
by Maryna Brodina

Hello!

Try to specify full path to the file http://cordova.apache.org/docs/en/3.0... or add PhoneGap plugin which helps to open PDF in appropriate program.


Open a local PDF in iOS and Android

Posted: Thu Mar 27, 2014 3:21 pm
by Rolf

Hi Maryna,

Think you misread the question.
It is a local file, so the path won't be http://cordova.apache.org/...

Which PhoneGap Plugin are you referring to?


Open a local PDF in iOS and Android

Posted: Thu Mar 27, 2014 4:14 pm
by Nikita

Hello Rolf,

1)We've understood that this is the local file. Please follow the link and look how to get the full path to file.
2)Please try to look for a plugin.


Open a local PDF in iOS and Android

Posted: Fri May 16, 2014 6:24 am
by Sjef Moling

Hi,

working on the same project as Rolf we still didn't manage to get this working.

In iOS this works: window.open(localpdf, 'blank', 'EnableViewPortScale=yes');
in the Appery tester app on android this works: window.open(localpdf, 'system');
But native in android we can't get it to work.

Nothing happens when the onclick is launched. When I add file:/// to the localpdf filepath the pdf reader is launched, but the file can't found. I tried changing android permissions, but that did not help either. It seems I need the full path to the file, but I can't get hold of it.

I like to try your solution of adding a phonegap plugin, but please refer to a manual on how to achieve this. Other solutions are welcome as well.

Thanks in advance.


Open a local PDF in iOS and Android

Posted: Fri May 16, 2014 3:23 pm
by Evgene Karachevtsev

Hello,

Please look for information you need here:
https://getsatisfaction.com/apperyio/...


Open a local PDF in iOS and Android

Posted: Tue May 20, 2014 8:39 am
by Sjef Moling

still not working.

window.plugins.childBrowser is undefined


Open a local PDF in iOS and Android

Posted: Wed May 21, 2014 10:54 am
by Maryna Brodina

Hello!

Sorry for a late reply! As I can see from this post https://getsatisfaction.com/apperyio/... you managed to resolve this issue. Do you need further help?


Open a local PDF in iOS and Android

Posted: Wed May 21, 2014 11:02 am
by Sjef Moling

I didn't work (window.plugins.childBrowser is undefined) but I got fed up with it and included the information as text in a page instead of a pdf.


Open a local PDF in iOS and Android

Posted: Thu Jul 10, 2014 1:28 am
by Yurii Orishchuk

Hi Sjef,

Thanks for your update.

Regards.