pdf.js/examples/mobile-viewer
Jonas Jenwald a1cfa5f4d7 Replace the disableTextLayer and enhanceTextSelection options/preferences with a single textLayerMode option/preference
Rather than having two different (but connected) options for the textLayer, I think that it makes sense to try and unify this. For example: currently if `disableTextLayer === true`, then the value of `enhanceTextSelection` is simply ignored.

Since PDF.js version `2.0` already won't be backwards compatible in lots of ways, I don't think that we need to worry about migrating existing preferences here.
2018-02-13 16:56:54 +01: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 Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
viewer.js Replace the disableTextLayer and enhanceTextSelection options/preferences with a single textLayerMode option/preference 2018-02-13 16:56:54 +01: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.