Browse Source

PDF.js version 2.0.211 - See mozilla/pdf.js@6bbe91079b1f20e9daa88f2d103d57ffb2bb341f

master v2.0.211
pdfjsbot 7 years ago
parent
commit
e9432e5a43
  1. 2
      bower.json
  2. 58
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 24
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 38
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 10
      lib/core/cmap.js
  11. 8
      lib/core/colorspace.js
  12. 2
      lib/core/font_renderer.js
  13. 2
      lib/core/fonts.js
  14. 2
      lib/core/function.js
  15. 2
      lib/core/obj.js
  16. 4
      lib/core/pattern.js
  17. 2
      lib/core/pdf_manager.js
  18. 2
      lib/core/worker.js
  19. 2
      lib/display/annotation_layer.js
  20. 8
      lib/display/api.js
  21. 4
      lib/display/canvas.js
  22. 2
      lib/display/dom_utils.js
  23. 4
      lib/display/global.js
  24. 4
      lib/pdf.js
  25. 4
      lib/pdf.worker.js
  26. 2
      package.json

2
bower.json

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

58
build/pdf.combined.js

@ -3347,7 +3347,7 @@ var DummyStatTimer = function () { @@ -3347,7 +3347,7 @@ var DummyStatTimer = function () {
function DummyStatTimer() {
_classCallCheck(this, DummyStatTimer);
throw new Error('Cannot initialize DummyStatTimer.');
(0, _util.unreachable)('Cannot initialize DummyStatTimer.');
}
_createClass(DummyStatTimer, null, [{
@ -3552,7 +3552,7 @@ var ColorSpace = function ColorSpaceClosure() { @@ -3552,7 +3552,7 @@ var ColorSpace = function ColorSpaceClosure() {
}
}
function ColorSpace() {
throw new Error('should not call ColorSpace constructor');
(0, _util.unreachable)('should not call ColorSpace constructor');
}
ColorSpace.prototype = {
getRgb: function ColorSpace_getRgb(src, srcOffset) {
@ -3561,13 +3561,13 @@ var ColorSpace = function ColorSpaceClosure() { @@ -3561,13 +3561,13 @@ var ColorSpace = function ColorSpaceClosure() {
return rgb;
},
getRgbItem: function ColorSpace_getRgbItem(src, srcOffset, dest, destOffset) {
throw new Error('Should not call ColorSpace.getRgbItem');
(0, _util.unreachable)('Should not call ColorSpace.getRgbItem');
},
getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) {
throw new Error('Should not call ColorSpace.getRgbBuffer');
(0, _util.unreachable)('Should not call ColorSpace.getRgbBuffer');
},
getOutputLength: function ColorSpace_getOutputLength(inputLength, alpha01) {
throw new Error('Should not call ColorSpace.getOutputLength');
(0, _util.unreachable)('Should not call ColorSpace.getOutputLength');
},
isPassthrough: function ColorSpace_isPassthrough(bits) {
return false;
@ -11638,7 +11638,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11638,7 +11638,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.209';
var apiVersion = '2.0.211';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -11757,7 +11757,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() { @@ -11757,7 +11757,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
this._readyCapability.resolve();
},
requestDataRange: function PDFDataRangeTransport_requestDataRange(begin, end) {
throw new Error('Abstract method PDFDataRangeTransport.requestDataRange');
(0, _util.unreachable)('Abstract method PDFDataRangeTransport.requestDataRange');
},
abort: function PDFDataRangeTransport_abort() {}
};
@ -12928,8 +12928,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -12928,8 +12928,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.209';
exports.build = build = '6515b911';
exports.version = version = '2.0.211';
exports.build = build = '6bbe9107';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -14747,7 +14747,7 @@ var XRef = function XRefClosure() { @@ -14747,7 +14747,7 @@ var XRef = function XRefClosure() {
}();
var NameOrNumberTree = function NameOrNumberTreeClosure() {
function NameOrNumberTree(root, xref) {
throw new Error('Cannot initialize NameOrNumberTree.');
(0, _util.unreachable)('Cannot initialize NameOrNumberTree.');
}
NameOrNumberTree.prototype = {
getAll: function NameOrNumberTree_getAll() {
@ -23754,7 +23754,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { @@ -23754,7 +23754,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() {
this.type = type;
}
AstNode.prototype.visit = function (visitor) {
throw new Error('abstract method');
(0, _util.unreachable)('abstract method');
};
function AstArgument(index, min, max) {
AstNode.call(this, 'args');
@ -24267,7 +24267,7 @@ var AnnotationElement = function () { @@ -24267,7 +24267,7 @@ var AnnotationElement = function () {
}, {
key: 'render',
value: function render() {
throw new Error('Abstract method `AnnotationElement.render` called');
(0, _util.unreachable)('Abstract method `AnnotationElement.render` called');
}
}]);
@ -26689,8 +26689,8 @@ exports.SVGGraphics = SVGGraphics; @@ -26689,8 +26689,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.209';
var pdfjsBuild = '6515b911';
var pdfjsVersion = '2.0.211';
var pdfjsBuild = '6bbe9107';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(131);
var pdfjsDisplayAPI = __w_pdfjs_require__(65);
@ -32040,8 +32040,8 @@ if (!_global_scope2.default.PDFJS) { @@ -32040,8 +32040,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.209';
PDFJS.build = '6515b911';
PDFJS.version = '2.0.211';
PDFJS.build = '6bbe9107';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -33775,10 +33775,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() { @@ -33775,10 +33775,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
this.restore();
},
beginInlineImage: function CanvasGraphics_beginInlineImage() {
throw new Error('Should not call beginInlineImage');
(0, _util.unreachable)('Should not call beginInlineImage');
},
beginImageData: function CanvasGraphics_beginImageData() {
throw new Error('Should not call beginImageData');
(0, _util.unreachable)('Should not call beginImageData');
},
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) {
this.save();
@ -35401,7 +35401,7 @@ var WorkerMessageHandler = { @@ -35401,7 +35401,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.209';
var workerVersion = '2.0.211';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -35811,7 +35811,7 @@ var _stream = __w_pdfjs_require__(2); @@ -35811,7 +35811,7 @@ var _stream = __w_pdfjs_require__(2);
var BasePdfManager = function BasePdfManagerClosure() {
function BasePdfManager() {
throw new Error('Cannot initialize BaseManagerManager');
(0, _util.unreachable)('Cannot initialize BaseManagerManager');
}
BasePdfManager.prototype = {
get docId() {
@ -43274,16 +43274,16 @@ var IdentityCMap = function IdentityCMapClosure() { @@ -43274,16 +43274,16 @@ var IdentityCMap = function IdentityCMapClosure() {
IdentityCMap.prototype = {
addCodespaceRange: CMap.prototype.addCodespaceRange,
mapCidRange: function mapCidRange(low, high, dstLow) {
throw new Error('should not call mapCidRange');
(0, _util.unreachable)('should not call mapCidRange');
},
mapBfRange: function mapBfRange(low, high, dstLow) {
throw new Error('should not call mapBfRange');
(0, _util.unreachable)('should not call mapBfRange');
},
mapBfRangeToArray: function mapBfRangeToArray(low, high, array) {
throw new Error('should not call mapBfRangeToArray');
(0, _util.unreachable)('should not call mapBfRangeToArray');
},
mapOne: function mapOne(src, dst) {
throw new Error('should not call mapCidOne');
(0, _util.unreachable)('should not call mapCidOne');
},
lookup: function lookup(code) {
return Number.isInteger(code) && code <= 0xffff ? code : undefined;
@ -43312,7 +43312,7 @@ var IdentityCMap = function IdentityCMapClosure() { @@ -43312,7 +43312,7 @@ var IdentityCMap = function IdentityCMapClosure() {
return 0x10000;
},
get isIdentityCMap() {
throw new Error('should not access .isIdentityCMap');
(0, _util.unreachable)('should not access .isIdentityCMap');
}
};
return IdentityCMap;
@ -44049,7 +44049,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() { @@ -44049,7 +44049,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() {
return Number.isInteger(v) && v >= this.firstChar && v <= this.lastChar ? v : -1;
},
amend: function amend(map) {
throw new Error('Should not call amend()');
(0, _util.unreachable)('Should not call amend()');
}
};
return IdentityToUnicodeMap;
@ -47016,7 +47016,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { @@ -47016,7 +47016,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() {
return cmds;
},
compileGlyphImpl: function compileGlyphImpl() {
throw new Error('Children classes should implement this.');
(0, _util.unreachable)('Children classes should implement this.');
},
hasBuiltPath: function hasBuiltPath(unicode) {
var cmap = lookupCmap(this.cmap, unicode);
@ -47680,11 +47680,11 @@ var ShadingType = { @@ -47680,11 +47680,11 @@ var ShadingType = {
};
var Pattern = function PatternClosure() {
function Pattern() {
throw new Error('should not call Pattern constructor');
(0, _util.unreachable)('should not call Pattern constructor');
}
Pattern.prototype = {
getPattern: function Pattern_getPattern(ctx) {
throw new Error('Should not call Pattern.getStyle: ' + ctx);
(0, _util.unreachable)('Should not call Pattern.getStyle: ' + ctx);
}
};
Pattern.parseShading = function (shading, matrix, xref, res, handler, pdfFunctionFactory) {

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

24
build/pdf.js

@ -2106,7 +2106,7 @@ var DummyStatTimer = function () { @@ -2106,7 +2106,7 @@ var DummyStatTimer = function () {
function DummyStatTimer() {
_classCallCheck(this, DummyStatTimer);
throw new Error('Cannot initialize DummyStatTimer.');
(0, _util.unreachable)('Cannot initialize DummyStatTimer.');
}
_createClass(DummyStatTimer, null, [{
@ -3325,7 +3325,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3325,7 +3325,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.209';
var apiVersion = '2.0.211';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -3444,7 +3444,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() { @@ -3444,7 +3444,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
this._readyCapability.resolve();
},
requestDataRange: function PDFDataRangeTransport_requestDataRange(begin, end) {
throw new Error('Abstract method PDFDataRangeTransport.requestDataRange');
(0, _util.unreachable)('Abstract method PDFDataRangeTransport.requestDataRange');
},
abort: function PDFDataRangeTransport_abort() {}
};
@ -4696,8 +4696,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -4696,8 +4696,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.209';
exports.build = build = '6515b911';
exports.version = version = '2.0.211';
exports.build = build = '6bbe9107';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -5018,7 +5018,7 @@ var AnnotationElement = function () { @@ -5018,7 +5018,7 @@ var AnnotationElement = function () {
}, {
key: 'render',
value: function render() {
throw new Error('Abstract method `AnnotationElement.render` called');
(0, _util.unreachable)('Abstract method `AnnotationElement.render` called');
}
}]);
@ -7441,8 +7441,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7441,8 +7441,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.209';
var pdfjsBuild = '6515b911';
var pdfjsVersion = '2.0.211';
var pdfjsBuild = '6bbe9107';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(114);
var pdfjsDisplayAPI = __w_pdfjs_require__(57);
@ -12792,8 +12792,8 @@ if (!_global_scope2.default.PDFJS) { @@ -12792,8 +12792,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.209';
PDFJS.build = '6515b911';
PDFJS.version = '2.0.211';
PDFJS.build = '6bbe9107';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -14527,10 +14527,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() { @@ -14527,10 +14527,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
this.restore();
},
beginInlineImage: function CanvasGraphics_beginInlineImage() {
throw new Error('Should not call beginInlineImage');
(0, _util.unreachable)('Should not call beginInlineImage');
},
beginImageData: function CanvasGraphics_beginImageData() {
throw new Error('Should not call beginImageData');
(0, _util.unreachable)('Should not call beginImageData');
},
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) {
this.save();

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

38
build/pdf.worker.js vendored

@ -2997,7 +2997,7 @@ var ColorSpace = function ColorSpaceClosure() { @@ -2997,7 +2997,7 @@ var ColorSpace = function ColorSpaceClosure() {
}
}
function ColorSpace() {
throw new Error('should not call ColorSpace constructor');
(0, _util.unreachable)('should not call ColorSpace constructor');
}
ColorSpace.prototype = {
getRgb: function ColorSpace_getRgb(src, srcOffset) {
@ -3006,13 +3006,13 @@ var ColorSpace = function ColorSpaceClosure() { @@ -3006,13 +3006,13 @@ var ColorSpace = function ColorSpaceClosure() {
return rgb;
},
getRgbItem: function ColorSpace_getRgbItem(src, srcOffset, dest, destOffset) {
throw new Error('Should not call ColorSpace.getRgbItem');
(0, _util.unreachable)('Should not call ColorSpace.getRgbItem');
},
getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) {
throw new Error('Should not call ColorSpace.getRgbBuffer');
(0, _util.unreachable)('Should not call ColorSpace.getRgbBuffer');
},
getOutputLength: function ColorSpace_getOutputLength(inputLength, alpha01) {
throw new Error('Should not call ColorSpace.getOutputLength');
(0, _util.unreachable)('Should not call ColorSpace.getOutputLength');
},
isPassthrough: function ColorSpace_isPassthrough(bits) {
return false;
@ -12575,7 +12575,7 @@ var XRef = function XRefClosure() { @@ -12575,7 +12575,7 @@ var XRef = function XRefClosure() {
}();
var NameOrNumberTree = function NameOrNumberTreeClosure() {
function NameOrNumberTree(root, xref) {
throw new Error('Cannot initialize NameOrNumberTree.');
(0, _util.unreachable)('Cannot initialize NameOrNumberTree.');
}
NameOrNumberTree.prototype = {
getAll: function NameOrNumberTree_getAll() {
@ -21582,7 +21582,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { @@ -21582,7 +21582,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() {
this.type = type;
}
AstNode.prototype.visit = function (visitor) {
throw new Error('abstract method');
(0, _util.unreachable)('abstract method');
};
function AstArgument(index, min, max) {
AstNode.call(this, 'args');
@ -21909,8 +21909,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -21909,8 +21909,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.209';
var pdfjsBuild = '6515b911';
var pdfjsVersion = '2.0.211';
var pdfjsBuild = '6bbe9107';
var pdfjsCoreWorker = __w_pdfjs_require__(72);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22115,7 +22115,7 @@ var WorkerMessageHandler = { @@ -22115,7 +22115,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.209';
var workerVersion = '2.0.211';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -27799,7 +27799,7 @@ var _stream = __w_pdfjs_require__(2); @@ -27799,7 +27799,7 @@ var _stream = __w_pdfjs_require__(2);
var BasePdfManager = function BasePdfManagerClosure() {
function BasePdfManager() {
throw new Error('Cannot initialize BaseManagerManager');
(0, _util.unreachable)('Cannot initialize BaseManagerManager');
}
BasePdfManager.prototype = {
get docId() {
@ -35262,16 +35262,16 @@ var IdentityCMap = function IdentityCMapClosure() { @@ -35262,16 +35262,16 @@ var IdentityCMap = function IdentityCMapClosure() {
IdentityCMap.prototype = {
addCodespaceRange: CMap.prototype.addCodespaceRange,
mapCidRange: function mapCidRange(low, high, dstLow) {
throw new Error('should not call mapCidRange');
(0, _util.unreachable)('should not call mapCidRange');
},
mapBfRange: function mapBfRange(low, high, dstLow) {
throw new Error('should not call mapBfRange');
(0, _util.unreachable)('should not call mapBfRange');
},
mapBfRangeToArray: function mapBfRangeToArray(low, high, array) {
throw new Error('should not call mapBfRangeToArray');
(0, _util.unreachable)('should not call mapBfRangeToArray');
},
mapOne: function mapOne(src, dst) {
throw new Error('should not call mapCidOne');
(0, _util.unreachable)('should not call mapCidOne');
},
lookup: function lookup(code) {
return Number.isInteger(code) && code <= 0xffff ? code : undefined;
@ -35300,7 +35300,7 @@ var IdentityCMap = function IdentityCMapClosure() { @@ -35300,7 +35300,7 @@ var IdentityCMap = function IdentityCMapClosure() {
return 0x10000;
},
get isIdentityCMap() {
throw new Error('should not access .isIdentityCMap');
(0, _util.unreachable)('should not access .isIdentityCMap');
}
};
return IdentityCMap;
@ -36037,7 +36037,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() { @@ -36037,7 +36037,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() {
return Number.isInteger(v) && v >= this.firstChar && v <= this.lastChar ? v : -1;
},
amend: function amend(map) {
throw new Error('Should not call amend()');
(0, _util.unreachable)('Should not call amend()');
}
};
return IdentityToUnicodeMap;
@ -39004,7 +39004,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { @@ -39004,7 +39004,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() {
return cmds;
},
compileGlyphImpl: function compileGlyphImpl() {
throw new Error('Children classes should implement this.');
(0, _util.unreachable)('Children classes should implement this.');
},
hasBuiltPath: function hasBuiltPath(unicode) {
var cmap = lookupCmap(this.cmap, unicode);
@ -39668,11 +39668,11 @@ var ShadingType = { @@ -39668,11 +39668,11 @@ var ShadingType = {
};
var Pattern = function PatternClosure() {
function Pattern() {
throw new Error('should not call Pattern constructor');
(0, _util.unreachable)('should not call Pattern constructor');
}
Pattern.prototype = {
getPattern: function Pattern_getPattern(ctx) {
throw new Error('Should not call Pattern.getStyle: ' + ctx);
(0, _util.unreachable)('Should not call Pattern.getStyle: ' + ctx);
}
};
Pattern.parseShading = function (shading, matrix, xref, res, handler, pdfFunctionFactory) {

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

10
lib/core/cmap.js

@ -153,16 +153,16 @@ var IdentityCMap = function IdentityCMapClosure() { @@ -153,16 +153,16 @@ var IdentityCMap = function IdentityCMapClosure() {
IdentityCMap.prototype = {
addCodespaceRange: CMap.prototype.addCodespaceRange,
mapCidRange: function mapCidRange(low, high, dstLow) {
throw new Error('should not call mapCidRange');
(0, _util.unreachable)('should not call mapCidRange');
},
mapBfRange: function mapBfRange(low, high, dstLow) {
throw new Error('should not call mapBfRange');
(0, _util.unreachable)('should not call mapBfRange');
},
mapBfRangeToArray: function mapBfRangeToArray(low, high, array) {
throw new Error('should not call mapBfRangeToArray');
(0, _util.unreachable)('should not call mapBfRangeToArray');
},
mapOne: function mapOne(src, dst) {
throw new Error('should not call mapCidOne');
(0, _util.unreachable)('should not call mapCidOne');
},
lookup: function lookup(code) {
return Number.isInteger(code) && code <= 0xffff ? code : undefined;
@ -191,7 +191,7 @@ var IdentityCMap = function IdentityCMapClosure() { @@ -191,7 +191,7 @@ var IdentityCMap = function IdentityCMapClosure() {
return 0x10000;
},
get isIdentityCMap() {
throw new Error('should not access .isIdentityCMap');
(0, _util.unreachable)('should not access .isIdentityCMap');
}
};
return IdentityCMap;

8
lib/core/colorspace.js

@ -51,7 +51,7 @@ var ColorSpace = function ColorSpaceClosure() { @@ -51,7 +51,7 @@ var ColorSpace = function ColorSpaceClosure() {
}
}
function ColorSpace() {
throw new Error('should not call ColorSpace constructor');
(0, _util.unreachable)('should not call ColorSpace constructor');
}
ColorSpace.prototype = {
getRgb: function ColorSpace_getRgb(src, srcOffset) {
@ -60,13 +60,13 @@ var ColorSpace = function ColorSpaceClosure() { @@ -60,13 +60,13 @@ var ColorSpace = function ColorSpaceClosure() {
return rgb;
},
getRgbItem: function ColorSpace_getRgbItem(src, srcOffset, dest, destOffset) {
throw new Error('Should not call ColorSpace.getRgbItem');
(0, _util.unreachable)('Should not call ColorSpace.getRgbItem');
},
getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) {
throw new Error('Should not call ColorSpace.getRgbBuffer');
(0, _util.unreachable)('Should not call ColorSpace.getRgbBuffer');
},
getOutputLength: function ColorSpace_getOutputLength(inputLength, alpha01) {
throw new Error('Should not call ColorSpace.getOutputLength');
(0, _util.unreachable)('Should not call ColorSpace.getOutputLength');
},
isPassthrough: function ColorSpace_isPassthrough(bits) {
return false;

2
lib/core/font_renderer.js

@ -675,7 +675,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { @@ -675,7 +675,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() {
return cmds;
},
compileGlyphImpl: function compileGlyphImpl() {
throw new Error('Children classes should implement this.');
(0, _util.unreachable)('Children classes should implement this.');
},
hasBuiltPath: function hasBuiltPath(unicode) {
var cmap = lookupCmap(this.cmap, unicode);

2
lib/core/fonts.js

@ -211,7 +211,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() { @@ -211,7 +211,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() {
return Number.isInteger(v) && v >= this.firstChar && v <= this.lastChar ? v : -1;
},
amend: function amend(map) {
throw new Error('Should not call amend()');
(0, _util.unreachable)('Should not call amend()');
}
};
return IdentityToUnicodeMap;

2
lib/core/function.js

@ -821,7 +821,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { @@ -821,7 +821,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() {
this.type = type;
}
AstNode.prototype.visit = function (visitor) {
throw new Error('abstract method');
(0, _util.unreachable)('abstract method');
};
function AstArgument(index, min, max) {
AstNode.call(this, 'args');

2
lib/core/obj.js

@ -1227,7 +1227,7 @@ var XRef = function XRefClosure() { @@ -1227,7 +1227,7 @@ var XRef = function XRefClosure() {
}();
var NameOrNumberTree = function NameOrNumberTreeClosure() {
function NameOrNumberTree(root, xref) {
throw new Error('Cannot initialize NameOrNumberTree.');
(0, _util.unreachable)('Cannot initialize NameOrNumberTree.');
}
NameOrNumberTree.prototype = {
getAll: function NameOrNumberTree_getAll() {

4
lib/core/pattern.js

@ -36,11 +36,11 @@ var ShadingType = { @@ -36,11 +36,11 @@ var ShadingType = {
};
var Pattern = function PatternClosure() {
function Pattern() {
throw new Error('should not call Pattern constructor');
(0, _util.unreachable)('should not call Pattern constructor');
}
Pattern.prototype = {
getPattern: function Pattern_getPattern(ctx) {
throw new Error('Should not call Pattern.getStyle: ' + ctx);
(0, _util.unreachable)('Should not call Pattern.getStyle: ' + ctx);
}
};
Pattern.parseShading = function (shading, matrix, xref, res, handler, pdfFunctionFactory) {

2
lib/core/pdf_manager.js

@ -29,7 +29,7 @@ var _stream = require('./stream'); @@ -29,7 +29,7 @@ var _stream = require('./stream');
var BasePdfManager = function BasePdfManagerClosure() {
function BasePdfManager() {
throw new Error('Cannot initialize BaseManagerManager');
(0, _util.unreachable)('Cannot initialize BaseManagerManager');
}
BasePdfManager.prototype = {
get docId() {

2
lib/core/worker.js

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

2
lib/display/annotation_layer.js

@ -200,7 +200,7 @@ var AnnotationElement = function () { @@ -200,7 +200,7 @@ var AnnotationElement = function () {
}, {
key: 'render',
value: function render() {
throw new Error('Abstract method `AnnotationElement.render` called');
(0, _util.unreachable)('Abstract method `AnnotationElement.render` called');
}
}]);

8
lib/display/api.js

@ -171,7 +171,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -171,7 +171,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.209';
var apiVersion = '2.0.211';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -290,7 +290,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() { @@ -290,7 +290,7 @@ var PDFDataRangeTransport = function pdfDataRangeTransportClosure() {
this._readyCapability.resolve();
},
requestDataRange: function PDFDataRangeTransport_requestDataRange(begin, end) {
throw new Error('Abstract method PDFDataRangeTransport.requestDataRange');
(0, _util.unreachable)('Abstract method PDFDataRangeTransport.requestDataRange');
},
abort: function PDFDataRangeTransport_abort() {}
};
@ -1542,8 +1542,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1542,8 +1542,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.209';
exports.build = build = '6515b911';
exports.version = version = '2.0.211';
exports.build = build = '6bbe9107';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/canvas.js

@ -1367,10 +1367,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() { @@ -1367,10 +1367,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
this.restore();
},
beginInlineImage: function CanvasGraphics_beginInlineImage() {
throw new Error('Should not call beginInlineImage');
(0, _util.unreachable)('Should not call beginInlineImage');
},
beginImageData: function CanvasGraphics_beginImageData() {
throw new Error('Should not call beginImageData');
(0, _util.unreachable)('Should not call beginImageData');
},
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) {
this.save();

2
lib/display/dom_utils.js

@ -516,7 +516,7 @@ var DummyStatTimer = function () { @@ -516,7 +516,7 @@ var DummyStatTimer = function () {
function DummyStatTimer() {
_classCallCheck(this, DummyStatTimer);
throw new Error('Cannot initialize DummyStatTimer.');
(0, _util.unreachable)('Cannot initialize DummyStatTimer.');
}
_createClass(DummyStatTimer, null, [{

4
lib/display/global.js

@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) { @@ -44,8 +44,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.209';
PDFJS.build = '6515b911';
PDFJS.version = '2.0.211';
PDFJS.build = '6bbe9107';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -14,8 +14,8 @@ @@ -14,8 +14,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.209';
var pdfjsBuild = '6515b911';
var pdfjsVersion = '2.0.211';
var pdfjsBuild = '6bbe9107';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
*/
'use strict';
var pdfjsVersion = '2.0.209';
var pdfjsBuild = '6515b911';
var pdfjsVersion = '2.0.211';
var pdfjsBuild = '6bbe9107';
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.209",
"version": "2.0.211",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save