pdf.js/examples/mobile-viewer
Jonas Jenwald 65e9ff68aa [mobile-viewer] Add an async close method to the example, and change open to also be async (issue 7571)
Since the `mobile-viewer` example is based on the old FirefoxOS/B2G PDF viewer, it didn't need to have the same kind of `open/close` methods as the default viewer.
However, now that it has been re-purposed as a simple `mobile-viewer` example, it seems like a good idea to ensure that it has proper asynchronous `open/close` methods.

Fixes 7571.
2016-08-27 12:57:34 +02:00
..
images Move B2G viewer to the examples folder 2016-07-27 17:31:52 +02:00
README.md Refactor the mobile viewer example 2016-07-27 17:31:52 +02:00
viewer.css Refactor the mobile viewer example 2016-07-27 17:31:52 +02:00
viewer.html Refactor the mobile viewer example 2016-07-27 17:31:52 +02:00
viewer.js [mobile-viewer] Add an async close method to the example, and change open to also be async (issue 7571) 2016-08-27 12:57:34 +02:00

Overview

Example to demonstrate PDF.js library usage with a viewer optimized for mobile usage.

Getting started

Build PDF.js using gulp dist 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.