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?
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?
Hi Jay,
Then you should upload PDF to Appery.io Database as a file.
http://docs.appery.io/tutorials/uploa...
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.
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/...
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?
Hello Mike,
I can not reproduce, please tell us how do you open .pdf?
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.
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.
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.
window.open('URL', '_blank', 'EnableViewPortScale=yes');
This allows pinch and zoom of PDFs within the app.