KB: PDF Support
Kiosk Browser includes PDF support (v2.5.9 and up) by utilising the JavaScript library PDF.js. PDFs can be loaded either from a local file or remote web server, for example any of the following would work:
Please note that whilst PDF.js works in most scenarios, PDF support is limited.
Running v2.5.6 or lower?
Kiosk Browser includes basic PDF reading support by utilising the online Google Docs Viewer. This means your device must have access to the internet and the PDF must be externally hosted. Opening local PDF files is not supported.
Using the Allow List feature?
If you are using the Allow List feature you may need to add the PDF reader as an 'allowed' URL.
v2.5.9 and up - file:///android_asset/pdf/
v2.5.6 or lower - docs.google.com/viewer,docs.google.com/gview
Please note that whilst PDF.js works in most scenarios, PDF support is limited.
<a href="pdf-test.pdf">Test PDF (local)</a>
<a href="file:///storage/emulated/0/kioskbrowser/localcontent/pdf-test.pdf">Test PDF (local full path)</a>
<a href="http://www.android-kiosk.com/pdf-test.pdf">Test PDF (remote)</a>
Running v2.5.6 or lower?
Kiosk Browser includes basic PDF reading support by utilising the online Google Docs Viewer. This means your device must have access to the internet and the PDF must be externally hosted. Opening local PDF files is not supported.
Using the Allow List feature?
If you are using the Allow List feature you may need to add the PDF reader as an 'allowed' URL.
v2.5.9 and up - file:///android_asset/pdf/
v2.5.6 or lower - docs.google.com/viewer,docs.google.com/gview
Updated on: 10/06/2022
Thank you!