Jay6395558
Posts: 0
Joined: Thu Nov 07, 2013 8:17 pm

Link to pdfs contained within the app

How do you link directly to a pdf? I am using the ist component and I don't want to link each button to an external url but rather a pdf that is contained within the app or appery cloud. Would I use a database?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Link to pdfs contained within the app

Hi Jay,

Then you should upload PDF to Appery.io Database as a file.
http://docs.appery.io/tutorials/uploa...

Jay6395558
Posts: 0
Joined: Thu Nov 07, 2013 8:17 pm

Link to pdfs contained within the app

Can you elaborate on your response? The link you provided gives info on how to create an upload page on your app. I am not interested in having the user upload a pdf. I need to store pdfs so the user can access my pdf when they click on a button.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Link to pdfs contained within the app

Jay,

First, you would need to upload PDF file via Appery.io: https://appery.io/database/ choose Database - Files data - upload.

Here is how to open it: https://getsatisfaction.com/apperyio/...

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Link to pdfs contained within the app

Katya,

I have done this but, using the Appery Previewer on my device, the PDF is not scalable and only fits the screen. I would like to be able to zoom in and out of the PDF. Is this a limitation due to the Appery Previewer?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Link to pdfs contained within the app

Hello Mike,

I can not reproduce, please tell us how do you open .pdf?

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Link to pdfs contained within the app

Alena,

As suggested in this thread, I have uploaded a PDF file to my database.

I have a button component where Action--Navigate to Link (Open in New Window: True).

The link is the hyperlink generated from the Appery database PDF file.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Link to pdfs contained within the app

I have successfully tried running JavaScript on the button's action so that it opens the PDF in the device's standard browser (in my case, Safari) using the following command:

window.open("LINK", "_system");

In this case, the PDF is scalable. However, I would really like to be able to view this PDF within the app itself and not be directed to a browser.

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

Link to pdfs contained within the app

Hello! Looks like there is no way to do that, but you can try to search for PhoneGap plugin online to be able to open PDF in app and scale it.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Link to pdfs contained within the app

window.open('URL', '_blank', 'EnableViewPortScale=yes');

This allows pinch and zoom of PDFs within the app.

Return to “Issues”