Browse Source

PDF.js version 2.0.292 - See mozilla/pdf.js@628e70fbb5dea3b9066aa5c34cca70aaafef8db2

master v2.0.292
pdfjsbot 7 years ago
parent
commit
798695723f
  1. 2
      bower.json
  2. 32
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 30
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 6
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 2
      lib/core/worker.js
  11. 10
      lib/display/api.js
  12. 12
      lib/display/dom_utils.js
  13. 4
      lib/display/global.js
  14. 4
      lib/pdf.js
  15. 4
      lib/pdf.worker.js
  16. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "2.0.290",
"version": "2.0.292",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

32
build/pdf.combined.js

@ -3254,16 +3254,11 @@ var StatTimer = function () { @@ -3254,16 +3254,11 @@ var StatTimer = function () {
_classCallCheck(this, StatTimer);
this.enabled = !!enable;
this.reset();
this.started = Object.create(null);
this.times = [];
}
_createClass(StatTimer, [{
key: 'reset',
value: function reset() {
this.started = Object.create(null);
this.times = [];
}
}, {
key: 'time',
value: function time(name) {
if (!this.enabled) {
@ -3322,9 +3317,6 @@ var DummyStatTimer = function () { @@ -3322,9 +3317,6 @@ var DummyStatTimer = function () {
}
_createClass(DummyStatTimer, null, [{
key: 'reset',
value: function reset() {}
}, {
key: 'time',
value: function time(name) {}
}, {
@ -11641,7 +11633,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11641,7 +11633,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.290';
var apiVersion = '2.0.292';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -12054,8 +12046,8 @@ var PDFPageProxy = function PDFPageProxyClosure() { @@ -12054,8 +12046,8 @@ var PDFPageProxy = function PDFPageProxyClosure() {
}, this);
this.objs.clear();
this.annotationsPromise = null;
if (resetStats) {
this._stats.reset();
if (resetStats && this._stats instanceof _dom_utils.StatTimer) {
this._stats = new _dom_utils.StatTimer();
}
this.pendingCleanup = false;
},
@ -12936,8 +12928,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -12936,8 +12928,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.290';
exports.build = build = 'b6c57d90';
exports.version = version = '2.0.292';
exports.build = build = '628e70fb';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -27277,8 +27269,8 @@ exports.SVGGraphics = SVGGraphics; @@ -27277,8 +27269,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.290';
var pdfjsBuild = 'b6c57d90';
var pdfjsVersion = '2.0.292';
var pdfjsBuild = '628e70fb';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(133);
var pdfjsDisplayAPI = __w_pdfjs_require__(66);
@ -32481,8 +32473,8 @@ if (!_global_scope2.default.PDFJS) { @@ -32481,8 +32473,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.290';
PDFJS.build = 'b6c57d90';
PDFJS.version = '2.0.292';
PDFJS.build = '628e70fb';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -35853,7 +35845,7 @@ var WorkerMessageHandler = { @@ -35853,7 +35845,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.290';
var workerVersion = '2.0.292';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

30
build/pdf.js

@ -2013,16 +2013,11 @@ var StatTimer = function () { @@ -2013,16 +2013,11 @@ var StatTimer = function () {
_classCallCheck(this, StatTimer);
this.enabled = !!enable;
this.reset();
this.started = Object.create(null);
this.times = [];
}
_createClass(StatTimer, [{
key: 'reset',
value: function reset() {
this.started = Object.create(null);
this.times = [];
}
}, {
key: 'time',
value: function time(name) {
if (!this.enabled) {
@ -2081,9 +2076,6 @@ var DummyStatTimer = function () { @@ -2081,9 +2076,6 @@ var DummyStatTimer = function () {
}
_createClass(DummyStatTimer, null, [{
key: 'reset',
value: function reset() {}
}, {
key: 'time',
value: function time(name) {}
}, {
@ -3321,7 +3313,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3321,7 +3313,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.290';
var apiVersion = '2.0.292';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -3734,8 +3726,8 @@ var PDFPageProxy = function PDFPageProxyClosure() { @@ -3734,8 +3726,8 @@ var PDFPageProxy = function PDFPageProxyClosure() {
}, this);
this.objs.clear();
this.annotationsPromise = null;
if (resetStats) {
this._stats.reset();
if (resetStats && this._stats instanceof _dom_utils.StatTimer) {
this._stats = new _dom_utils.StatTimer();
}
this.pendingCleanup = false;
},
@ -4697,8 +4689,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -4697,8 +4689,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.290';
exports.build = build = 'b6c57d90';
exports.version = version = '2.0.292';
exports.build = build = '628e70fb';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7456,8 +7448,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7456,8 +7448,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.290';
var pdfjsBuild = 'b6c57d90';
var pdfjsVersion = '2.0.292';
var pdfjsBuild = '628e70fb';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(115);
var pdfjsDisplayAPI = __w_pdfjs_require__(58);
@ -12660,8 +12652,8 @@ if (!_global_scope2.default.PDFJS) { @@ -12660,8 +12652,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.290';
PDFJS.build = 'b6c57d90';
PDFJS.version = '2.0.292';
PDFJS.build = '628e70fb';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

6
build/pdf.worker.js vendored

@ -22498,8 +22498,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -22498,8 +22498,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.290';
var pdfjsBuild = 'b6c57d90';
var pdfjsVersion = '2.0.292';
var pdfjsBuild = '628e70fb';
var pdfjsCoreWorker = __w_pdfjs_require__(74);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22712,7 +22712,7 @@ var WorkerMessageHandler = { @@ -22712,7 +22712,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.290';
var workerVersion = '2.0.292';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
lib/core/worker.js

@ -223,7 +223,7 @@ var WorkerMessageHandler = { @@ -223,7 +223,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.290';
var workerVersion = '2.0.292';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

10
lib/display/api.js

@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.290';
var apiVersion = '2.0.292';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -591,8 +591,8 @@ var PDFPageProxy = function PDFPageProxyClosure() { @@ -591,8 +591,8 @@ var PDFPageProxy = function PDFPageProxyClosure() {
}, this);
this.objs.clear();
this.annotationsPromise = null;
if (resetStats) {
this._stats.reset();
if (resetStats && this._stats instanceof _dom_utils.StatTimer) {
this._stats = new _dom_utils.StatTimer();
}
this.pendingCleanup = false;
},
@ -1554,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1554,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.290';
exports.build = build = 'b6c57d90';
exports.version = version = '2.0.292';
exports.build = build = '628e70fb';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

12
lib/display/dom_utils.js

@ -427,16 +427,11 @@ var StatTimer = function () { @@ -427,16 +427,11 @@ var StatTimer = function () {
_classCallCheck(this, StatTimer);
this.enabled = !!enable;
this.reset();
this.started = Object.create(null);
this.times = [];
}
_createClass(StatTimer, [{
key: 'reset',
value: function reset() {
this.started = Object.create(null);
this.times = [];
}
}, {
key: 'time',
value: function time(name) {
if (!this.enabled) {
@ -495,9 +490,6 @@ var DummyStatTimer = function () { @@ -495,9 +490,6 @@ var DummyStatTimer = function () {
}
_createClass(DummyStatTimer, null, [{
key: 'reset',
value: function reset() {}
}, {
key: 'time',
value: function time(name) {}
}, {

4
lib/display/global.js

@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) { @@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.290';
PDFJS.build = 'b6c57d90';
PDFJS.version = '2.0.292';
PDFJS.build = '628e70fb';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -21,8 +21,8 @@ @@ -21,8 +21,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.290';
var pdfjsBuild = 'b6c57d90';
var pdfjsVersion = '2.0.292';
var pdfjsBuild = '628e70fb';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
*/
'use strict';
var pdfjsVersion = '2.0.290';
var pdfjsBuild = 'b6c57d90';
var pdfjsVersion = '2.0.292';
var pdfjsBuild = '628e70fb';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "2.0.290",
"version": "2.0.292",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save