Richard McCutcheon
Posts: 0
Joined: Fri Oct 24, 2014 8:53 am

How to attach documents from database (PDF) to a button

Hi

I was wondering could someone help me please.

I have added a PDF File to my database files,

I hope that the end user will click on a button on the app and be able to view/download the pdf file on their device.

Can someone please give me steps if this is possible

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to attach documents from database (PDF) to a button

Hello Richard,

You can open the PDF in the embedded inappbrowser. (http://cordova.apache.org/docs/en/3.3..., with window.open target=blank) for example via the Google viewer https://docs.google.com/viewer
or you can open the PDF in the default browser of the device
(with window.open target=system).
Or you can download the PDF and save it to device http://cordova.apache.org/docs/en/3.3...
You can also look for phonegap plugin to open the file in the viewer installed on the device

Richard McCutcheon
Posts: 0
Joined: Fri Oct 24, 2014 8:53 am

How to attach documents from database (PDF) to a button

is there a possible way of doing this when the user is offline?

No Internet connection Clicks on Button PDF Opens

Return to “Issues”