Dispay URL with PDF in the Widget-Browser

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Fox
Posts: 2
Joined: Thu Feb 16, 2017 7:27 am

Dispay URL with PDF in the Widget-Browser

Post by Fox » Thu Feb 16, 2017 8:32 am

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.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: Dispay URL with PDF in the Widget-Browser

Post by LiveCode_Panos » Thu Feb 16, 2017 11:13 am

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
--

Fox
Posts: 2
Joined: Thu Feb 16, 2017 7:27 am

Re: Dispay URL with PDF in the Widget-Browser

Post by Fox » Fri Feb 17, 2017 10:10 am

Hi Panos,

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

Thank you very much! :D

Best,
Fox

Post Reply