Skip to content
A minimal example that shows you how to render a PDF document and enable text-selection.
Branch: master
Clone or download
Latest commit fe25d9a Jun 7, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css First commit. Jun 7, 2013
js First commit. Jun 7, 2013
README.md minor changes Jun 7, 2013
index.html First commit. Jun 7, 2013

README.md

The existing pdf.js "Hello World" example only shows you how to render a PDF. Unfortunately, it does not show you how to enable text-selection. This example shows you how to do both. The difficulty with text-selection was that the text-selection code was part of the "PDF Viewer" app created by Mozilla. There is no API documentation either, regarding the enabling of text selection. I was able to extricate the parts of the code necessary for text-selection to create this demo. The main file (minimal.js) has detailed comments and it should be pretty easy to follow.

You can’t perform that action at this time.