Page 1 of 1

Dispay URL with PDF in the Widget-Browser

Posted: Thu Feb 16, 2017 8:32 am
by Fox
I am an absolute beginner and have certainly a solvable problem ....
I would like to create an app that displays the menus (mostly URL with pdf) from different restaurants.
I work with LC 8.1.2 and use in the app a navigation bar and the "widget browser" to display the various restaurants with the menus.

Now my problem:
Unfortunately the websites with a PDF in the URL are not displayed in the widget-browser.

URL example:
xxx.Mittagstisch.pdf
xxx/uploads/aktuelle_wochenkarte.pdf

On the PC, with the run test in the LC, viewing the PDFs, but on my Android phone doesn’t displayed the Website with URL with PDF.

Could you help me to look at the widget browser PDF's.

Re: Dispay URL with PDF in the Widget-Browser

Posted: Thu Feb 16, 2017 11:13 am
by LiveCode_Panos
Hi Fox,

First make sure that:

1. The "Internet" permission is checked in the "Android" pane of the standalone settings
2. The Browser Widget inclusion is added in the "Inclusions" pane of the standalone settings

Then, if the URL with pdf is still not displayed, try the following hack:

append the URL to

Code: Select all

http://docs.google.com/gview?embedded=true&url=
So if your original URL is e.g.

Code: Select all

https://www.polyu.edu.hk/iaee/files/pdf-sample.pdf
, then replace it with:

Code: Select all

http://docs.google.com/gview?embedded=true&url=https://www.polyu.edu.hk/iaee/files/pdf-sample.pdf
This should hopefully display the online PDF

Best,
Panos
--

Re: Dispay URL with PDF in the Widget-Browser

Posted: Fri Feb 17, 2017 10:10 am
by Fox
Hi Panos,

with the extension of the URL "xxx.docs.google" display the pdf.

Thank you very much! :D

Best,
Fox