RammohanKanuganti
Posts: 0
Joined: Mon Mar 26, 2012 8:38 am

How to open pdf

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to open pdf

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...

RammohanKanuganti
Posts: 0
Joined: Mon Mar 26, 2012 8:38 am

How to open pdf

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

How to open pdf

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...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to open pdf

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

How to open pdf

Any other options that you know work?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to open pdf

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

How to open pdf

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to open pdf

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.

dudi peretz
Posts: 0
Joined: Wed Jun 26, 2013 8:15 am

How to open pdf

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

Return to “Issues”