Page 1 of 2

How to open pdf

Posted: Thu Mar 29, 2012 6:05 pm
by RammohanKanuganti

Hi
i will have two containers.
first container(top 95% ) : i want to open pdf file
second container on the second container( bottom 5%) : i want to play audio.

on the second container i can easily play audio using Mobile Audio. No problem.
But on the first container, how can i open pdf file( it could be URL or it could be embedded inside app)
How to achieve this.


How to open pdf

Posted: Thu Mar 29, 2012 8:08 pm
by maxkatz

To read a local file it would have to be a PhoneGap app (I don't believe you get access to the file system in a pure mobile web app). PhoneGap provides the following file API: http://docs.phonegap.com/en/1.5.0/pho...


How to open pdf

Posted: Thu Mar 29, 2012 8:19 pm
by RammohanKanuganti

thanks Max.
I am planning to include .pdf as part of the mobile app installation itself as resource.
do not want to access/view any files files already installed on the mobile outside the app.


How to open pdf

Posted: Tue Oct 09, 2012 7:38 am
by Barbara

What is the best way to display a remote pdf when clicking a link. I found a phonegap plugin here that looks like it will do the job but don't know how to install in my project.

https://docs.google.com/file/d/0B_TYS...


How to open pdf

Posted: Tue Oct 09, 2012 8:18 am
by Maryna Brodina

Hello! There is no easy way to install this plugin in your project. To do that you have to develop this functionality in Eclipce and then manually build the project.


How to open pdf

Posted: Tue Oct 09, 2012 8:21 am
by Barbara

Any other options that you know work?


How to open pdf

Posted: Tue Oct 09, 2012 1:58 pm
by Maryna Brodina

You can try just placing a link to the PDF file. The phone should ask you which app to use to open the file.


How to open pdf

Posted: Tue Oct 09, 2012 9:22 pm
by Barbara

I tried that and it takes me to a browser and downloads the pdf without displaying it, or saying where it downloaded it to.


How to open pdf

Posted: Tue Oct 09, 2012 9:25 pm
by maxkatz

There is probably a default somewhere that says to download the file of that type. When I download a PDF, it asks me which app I'd like to launch.


How to open pdf

Posted: Fri Jul 12, 2013 9:30 am
by dudi peretz

Hi

I need to download PDF file by calling to the rest service. do u have any idea how to do it?

My rest service looks like that:
http://www.mkyong.com/webservices/jax...

Thanks