PDF View Server/Remote

Hi all,

i have freshly started to work with App Inventor and its really fascinating!

I'm working with different checking sheets.

My plan now is to create an app that for all different tasks the special pdf checking sheets will be loaded and shown within the app. So nothing complicated at all.

Requirements:

  • PDFs has to be saved on a server/remote (not google drive)

Goals

  • used for Android Tablets
  • PDFs need to be updated and so the newest version has to be loaded in the app. The files will be updated on the server.

Situation:

  • PDF from a URL is loaded and shown in the app.
  • Google Drive was also working but i dont want to use an additional stowage.

Issue:

  • The PDF is in a loop and change the viewing size/percentage all the time (every second)
  • Is webviewer actual the correct way? I prefer a free solution.

Can someone tell me what is the problem here?

I guess, i have to Clear the Cache before Loading the PDF again to have the newest version.

Also I need permissions (username/password) for the server. Is this possible?

Thank you for any support.

It is looping because you are using the .Pageloaded event. Don't.

1 Like

Hi TIMAI2,

thank you for your quick response. I tried it now with BeforePageLoad and it works. If there is no internet then it has to be download it to a file if im not wrong correct?

Can I also use an Server-IP as URL? Is it possible then to login it with credentials if needed? What commands I have to use for it.

Thank you for any help.

Cheers

Why not just set it in Screen initialise or with a button?

Yes, you will need the entire html file on your device

Yes, but always put an https:// or http:// at the start

This depends on the authentication required. If the website is using Basic Authentication (apache htaccess/htpasswd) then see here for how you might do that.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.