mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Better components examples.
This commit is contained in:
parent
61a4c740d2
commit
5f883d763f
5 changed files with 28 additions and 17 deletions
|
@ -16,17 +16,17 @@
|
|||
'use strict';
|
||||
|
||||
if (!PDFJS.PDFViewer || !PDFJS.getDocument) {
|
||||
alert('Please build the library and components using\n' +
|
||||
' `gulp generic components`');
|
||||
alert('Please build the pdfjs-dist library using\n' +
|
||||
' `gulp dist`');
|
||||
}
|
||||
|
||||
// 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.
|
||||
//
|
||||
// PDFJS.cMapUrl = '../../external/bcmaps/';
|
||||
// PDFJS.cMapUrl = '../../build/dist/cmaps/';
|
||||
// PDFJS.cMapPacked = true;
|
||||
|
||||
var DEFAULT_URL = '../../web/compressed.tracemonkey-pldi-09.pdf';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue