mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 07:38:07 +02:00
[api-minor] Add a pdfjsNext
parameter, and PDFJS_NEXT
build flag, to allow backwards incompatible API changes
This commit is contained in:
parent
2b17188998
commit
6d672c4ba6
7 changed files with 20 additions and 5 deletions
|
@ -263,6 +263,8 @@ var Driver = (function DriverClosure() { // eslint-disable-line no-unused-vars
|
|||
PDFJS.cMapUrl = '../external/bcmaps/';
|
||||
PDFJS.enableStats = true;
|
||||
PDFJS.imageResourcesPath = '/web/images/';
|
||||
// Opt-in to using the latest API.
|
||||
PDFJS.pdfjsNext = true;
|
||||
|
||||
// Set the passed options
|
||||
this.inflight = options.inflight;
|
||||
|
|
|
@ -60,6 +60,8 @@ function initializePDFJS(callback) {
|
|||
|
||||
// Configure the worker.
|
||||
displayGlobal.PDFJS.workerSrc = '../../src/worker_loader.js';
|
||||
// Opt-in to using the latest API.
|
||||
displayGlobal.PDFJS.pdfjsNext = true;
|
||||
|
||||
callback();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue