Andriod FireFox and pdf problem - Forum

Forum Navigation
You need to log in to create posts and topics.

Andriod FireFox and pdf problem

I have created a page with a ComboBox, with the text part:-

Data Protection and Data Security (NEW) |https://www.********.co.uk/steph_O6.pdf

and Variable set as [Combobox1].

The botton on the page used the code

SetObjectAttribute "IFrame6" "src" "[Combobox1]"

When this is tested on the PC, it works well, even after created and placed on a USB key it still work.

The problem comes when it is test on an Android tablet, using Firefox browser. The pdf does not open within iFrame, but downloads the file. Am I missing something?

the tablet is an Samsung Galaxy Tab A (2016), running Android Ver.8.1.o and Firefox Ver.68.1.1

I think that's a general web browser limitation on Android: they can't show embedded PDF's, therefore they download them.

@luishp

Thank you for that bit of information.

@luishp

last night I look on the web and found pdf.js and changed one line of code in the system to see if it would work. Yes it did, did not load my pdf, but is within the iFrame. I will still see if this can be changed to allow me to show my pdf's with iFrame.

 

https://mozilla.github.io/pdf.js/web/viewer.html

@m-burdess that's very interesting. If it works, perhaps we can add it as a plugin.
It would probably made neoPDF plugin to work also in Android devices for rendering PDF's instead of downloading them as it does right now. Any information would be very appreciated.
Thank you!

@luishp the web site for this is https://mozilla.github.io/pdf.js/

From what I have looked at, it has a structure and with this can show the pdf with in iFrame. One problem I see is that the pdf that it shows is within the Folder. You can dowload a copy of this from the link above. I hope someone can create a plugin that works on most systems

@m-burdess, if your .pdf documents are accesible online, you can use this as the IFrame src property:

http://docs.google.com/gview?embedded=true&url=<url of a supported doc>

It will use the Google docs pdf renderer. This will render not only PDF files but whatever document type supported by Google docs.

Regards.

CDY@44 and Samuel Vanneste have reacted to this post.
CDY@44Samuel Vanneste

@luishp, Thank you for that, this will help me help lots of people learn new skills.