1
0
Fork 0
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:
Yury Delendik 2017-05-10 18:28:18 -05:00
parent 9342054502
commit a18caa730d
24 changed files with 70 additions and 53 deletions

View file

@ -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