mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
parent
f1a9bc93f7
commit
f3d1f20652
4 changed files with 185 additions and 0 deletions
29
examples/text-selection/index.html
Normal file
29
examples/text-selection/index.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Minimal pdf.js text-selection demo</title>
|
||||
<link href="css/minimal.css" rel="stylesheet" media="screen" />
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
|
||||
|
||||
<!-- you will need to run "node make generic" first before you can use this -->
|
||||
<script src="../../build/generic/build/pdf.js" type="text/javascript"></script>
|
||||
|
||||
<!-- These files are viewer components that you will need to get text-selection to work -->
|
||||
<script src="../../web/pdf_find_bar.js"></script>
|
||||
<script src="../../web/pdf_find_controller.js"></script>
|
||||
<script src="../../web/ui_utils.js"></script>
|
||||
<script src="../../web/text_layer_builder.js"></script>
|
||||
|
||||
<script src="text/javascript">
|
||||
// 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" type="text/javascript"></script>
|
||||
</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 />
|
||||
<div id="pdfContainer" class="pdf-content">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue