mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-11-30 16:37:18 +01:00
This option is removed now, since: - It was originally added for the Boot to Gecko (B2G) project, later renamed to Firefox OS, which was discontinued in 2016. This option was needed then, since B2G was intended to also run on low-end hardware. - Outside of one example, which is a left-over from the B2G viewer, this option has been unused in the PDF.js project itself for a decade. - This option has never been covered by *any* tests. - The result of setting this option to a non-default value is that some images will not renderer, with only a console warning, which could easily make PDF.js appear "broken" to an end-user. - Image decoding performance, in particular for large and/or complex images, has been significantly improved compared to a decade ago. - If such an option was requested today, it seems unlikely that we'd actually consider adding it.
Overview
Example to demonstrate PDF.js library usage with a viewer optimized for mobile usage.
Getting started
Build PDF.js using gulp dist-install and run gulp server to start a web server.
You can then work with the mobile viewer at
http://localhost:8888/examples/mobile-viewer/viewer.html.
Refer to viewer.js for the source code of the mobile viewer.