Quote from m.burdess on February 20, 2020, 10:59 pmI 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 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

Quote from luishp on February 20, 2020, 11:13 pmI think that's a general web browser limitation on Android: they can't show embedded PDF's, therefore they download them.
I think that's a general web browser limitation on Android: they can't show embedded PDF's, therefore they download them.
Quote from m.burdess on February 21, 2020, 11:59 am@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
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.

Quote from luishp on February 21, 2020, 1:04 pm@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!
@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!
Quote from m.burdess on February 21, 2020, 10:42 pm@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
@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

Quote from luishp on February 24, 2020, 8:26 am@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.
@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.