mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Adds gulp dist-install command; using pdfjs-dist package in examples.
This commit is contained in:
parent
9342054502
commit
a18caa730d
24 changed files with 70 additions and 53 deletions
|
@ -11,9 +11,9 @@
|
|||
<canvas id="the-canvas" style="border:1px solid black"></canvas>
|
||||
|
||||
<!-- for legacy browsers add compatibility.js -->
|
||||
<!--<script src="../compatibility.js"></script>-->
|
||||
<!--<script src="../../node_modules/pdfjs-dist/web/compatibility.js"></script>-->
|
||||
|
||||
<script src="../../build/generic/build/pdf.js"></script>
|
||||
<script src="../../node_modules/pdfjs-dist/build/pdf.js"></script>
|
||||
|
||||
<script id="script">
|
||||
//
|
||||
|
@ -32,7 +32,7 @@
|
|||
//
|
||||
// The workerSrc property shall be specified.
|
||||
//
|
||||
PDFJS.workerSrc = '../../build/generic/build/pdf.worker.js';
|
||||
PDFJS.workerSrc = '../../node_modules/pdfjs-dist/build/pdf.worker.js';
|
||||
|
||||
//
|
||||
// Asynchronous download PDF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue