Page 1 of 1

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

Posted: Fri Oct 24, 2014 8:53 am
by Richard McCutcheon

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


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

Posted: Fri Oct 24, 2014 9:17 am
by Evgene Karachevtsev

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


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

Posted: Fri Oct 24, 2014 9:25 am
by Richard McCutcheon

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

No Internet connection Clicks on Button PDF Opens


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

Posted: Fri Oct 24, 2014 9:31 am
by Evgene Karachevtsev