pdf.js/examples/text-selection/index.html

27 lines
1.0 KiB
HTML
Raw Normal View History

2013-08-28 02:05:38 +09:00
<html>
<head>
<title>Minimal pdf.js text-selection demo</title>
<link href="css/minimal.css" rel="stylesheet" media="screen" />
<!-- you will need to run "node make generic" first before you can use this -->
<script src="../../build/generic/build/pdf.js"></script>
2013-08-28 02:05:38 +09:00
<!-- These files are viewer components that you will need to get text-selection to work -->
<script src="../../web/ui_utils.js"></script>
<script src="../../web/text_layer_builder.js"></script>
<script>
2013-08-28 02:05:38 +09:00
// Specify the main script used to create a new PDF.JS web worker.
// In production, change this to point to the combined `pdf.js` file.
</script>
<script src="js/minimal.js"></script>
2013-08-28 02:05:38 +09:00
</head>
<body>
This is a minimal pdf.js text-selection demo. The existing minimal-example shows you how to render a PDF, but not
how to enable text-selection. This example shows you how to do both. <br /><br />
2014-08-07 00:56:05 +09:00
<div id="pdfContainer">
2013-08-28 02:05:38 +09:00
</div>
</body>
</html>