Moves preprocessor stuff to the gulpfile.
This commit is contained in:
parent
6f0cf8c4cb
commit
2049cf01db
8 changed files with 370 additions and 429 deletions
|
@ -13,7 +13,7 @@
|
|||
<!-- for legacy browsers add compatibility.js -->
|
||||
<!--<script src="../compatibility.js"></script>-->
|
||||
|
||||
<script src="../../build/pdf.js"></script>
|
||||
<script src="../../build/generic/build/pdf.js"></script>
|
||||
|
||||
<script id="script">
|
||||
//
|
||||
|
@ -32,7 +32,7 @@
|
|||
//
|
||||
// The workerSrc property shall be specified.
|
||||
//
|
||||
PDFJS.workerSrc = '../../build/pdf.worker.js';
|
||||
PDFJS.workerSrc = '../../build/generic/build/pdf.worker.js';
|
||||
|
||||
//
|
||||
// Asynchronous download PDF
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<!-- for legacy browsers we need to use compatibility.js -->
|
||||
<script src="../../web/compatibility.js"></script>
|
||||
|
||||
<script src="../../build/pdf.js"></script>
|
||||
<script src="../../build/generic/build/pdf.js"></script>
|
||||
|
||||
<script id="script">
|
||||
// atob() is used to convert base64 encoded PDF to binary-like data.
|
||||
|
@ -43,7 +43,7 @@
|
|||
//
|
||||
// The workerSrc property shall be specified.
|
||||
//
|
||||
PDFJS.workerSrc = '../../build/pdf.worker.js';
|
||||
PDFJS.workerSrc = '../../build/generic/build/pdf.worker.js';
|
||||
|
||||
// Opening PDF by passing its binary data as a string. It is still preferable
|
||||
// to use Uint8Array, but string or array-like structure will work too.
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<!-- for legacy browsers add compatibility.js -->
|
||||
<!--<script src="../compatibility.js"></script>-->
|
||||
|
||||
<script src="../../build/pdf.js"></script>
|
||||
<script src="../../build/generic/build/pdf.js"></script>
|
||||
|
||||
<script id="script">
|
||||
//
|
||||
|
@ -44,7 +44,7 @@
|
|||
// pdf.js's one, or the pdf.js is executed via eval(), the workerSrc property
|
||||
// shall be specified.
|
||||
//
|
||||
// PDFJS.workerSrc = '../../build/pdf.worker.js';
|
||||
// PDFJS.workerSrc = '../../build/generic/build/pdf.worker.js';
|
||||
|
||||
var pdfDoc = null,
|
||||
pageNum = 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue