|
|
@ -16,17 +16,17 @@ |
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
|
if (!PDFJS.PDFViewer || !PDFJS.getDocument) { |
|
|
|
if (!PDFJS.PDFViewer || !PDFJS.getDocument) { |
|
|
|
alert('Please build the library and components using\n' + |
|
|
|
alert('Please build the pdfjs-dist library using\n' + |
|
|
|
' `gulp generic components`'); |
|
|
|
' `gulp dist`'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// The workerSrc property shall be specified.
|
|
|
|
// The workerSrc property shall be specified.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
PDFJS.workerSrc = '../../build/pdf.worker.js'; |
|
|
|
PDFJS.workerSrc = '../../build/dist/build/pdf.worker.js'; |
|
|
|
|
|
|
|
|
|
|
|
// Some PDFs need external cmaps.
|
|
|
|
// Some PDFs need external cmaps.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// PDFJS.cMapUrl = '../../external/bcmaps/';
|
|
|
|
// PDFJS.cMapUrl = '../../build/dist/cmaps/';
|
|
|
|
// PDFJS.cMapPacked = true;
|
|
|
|
// PDFJS.cMapPacked = true;
|
|
|
|
|
|
|
|
|
|
|
|
var DEFAULT_URL = '../../web/compressed.tracemonkey-pldi-09.pdf'; |
|
|
|
var DEFAULT_URL = '../../web/compressed.tracemonkey-pldi-09.pdf'; |
|
|
|