|
|
@ -3657,16 +3657,10 @@ var ColorSpace = function ColorSpaceClosure() { |
|
|
|
throw new _util.FormatError('Unknown colorspace name: ' + name); |
|
|
|
throw new _util.FormatError('Unknown colorspace name: ' + name); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
ColorSpace.parseToIR = function (cs, xref, res, pdfFunctionFactory) { |
|
|
|
ColorSpace.parseToIR = function (cs, xref) { |
|
|
|
if ((0, _primitives.isName)(cs)) { |
|
|
|
var res = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; |
|
|
|
var colorSpaces = res.get('ColorSpace'); |
|
|
|
var pdfFunctionFactory = arguments[3]; |
|
|
|
if ((0, _primitives.isDict)(colorSpaces)) { |
|
|
|
|
|
|
|
var refcs = colorSpaces.get(cs.name); |
|
|
|
|
|
|
|
if (refcs) { |
|
|
|
|
|
|
|
cs = refcs; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
cs = xref.fetchIfRef(cs); |
|
|
|
cs = xref.fetchIfRef(cs); |
|
|
|
if ((0, _primitives.isName)(cs)) { |
|
|
|
if ((0, _primitives.isName)(cs)) { |
|
|
|
switch (cs.name) { |
|
|
|
switch (cs.name) { |
|
|
@ -3682,6 +3676,19 @@ var ColorSpace = function ColorSpaceClosure() { |
|
|
|
case 'Pattern': |
|
|
|
case 'Pattern': |
|
|
|
return ['PatternCS', null]; |
|
|
|
return ['PatternCS', null]; |
|
|
|
default: |
|
|
|
default: |
|
|
|
|
|
|
|
if ((0, _primitives.isDict)(res)) { |
|
|
|
|
|
|
|
var colorSpaces = res.get('ColorSpace'); |
|
|
|
|
|
|
|
if ((0, _primitives.isDict)(colorSpaces)) { |
|
|
|
|
|
|
|
var resCS = colorSpaces.get(cs.name); |
|
|
|
|
|
|
|
if (resCS) { |
|
|
|
|
|
|
|
if ((0, _primitives.isName)(resCS)) { |
|
|
|
|
|
|
|
return ColorSpace.parseToIR(resCS, xref, res, pdfFunctionFactory); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
cs = resCS; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
throw new _util.FormatError('unrecognized colorspace ' + cs.name); |
|
|
|
throw new _util.FormatError('unrecognized colorspace ' + cs.name); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -11612,7 +11619,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { |
|
|
|
if (worker.destroyed) { |
|
|
|
if (worker.destroyed) { |
|
|
|
return Promise.reject(new Error('Worker was destroyed')); |
|
|
|
return Promise.reject(new Error('Worker was destroyed')); |
|
|
|
} |
|
|
|
} |
|
|
|
var apiVersion = '2.0.258'; |
|
|
|
var apiVersion = '2.0.260'; |
|
|
|
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange'); |
|
|
|
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange'); |
|
|
|
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch'); |
|
|
|
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch'); |
|
|
|
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream'); |
|
|
|
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream'); |
|
|
@ -12904,8 +12911,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var version, build; |
|
|
|
var version, build; |
|
|
|
{ |
|
|
|
{ |
|
|
|
exports.version = version = '2.0.258'; |
|
|
|
exports.version = version = '2.0.260'; |
|
|
|
exports.build = build = '5a52ee0a'; |
|
|
|
exports.build = build = 'd77fc888'; |
|
|
|
} |
|
|
|
} |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
@ -26696,8 +26703,8 @@ exports.SVGGraphics = SVGGraphics; |
|
|
|
"use strict"; |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '2.0.258'; |
|
|
|
var pdfjsVersion = '2.0.260'; |
|
|
|
var pdfjsBuild = '5a52ee0a'; |
|
|
|
var pdfjsBuild = 'd77fc888'; |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(131); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(131); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(65); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(65); |
|
|
@ -31876,8 +31883,8 @@ if (!_global_scope2.default.PDFJS) { |
|
|
|
} |
|
|
|
} |
|
|
|
var PDFJS = _global_scope2.default.PDFJS; |
|
|
|
var PDFJS = _global_scope2.default.PDFJS; |
|
|
|
{ |
|
|
|
{ |
|
|
|
PDFJS.version = '2.0.258'; |
|
|
|
PDFJS.version = '2.0.260'; |
|
|
|
PDFJS.build = '5a52ee0a'; |
|
|
|
PDFJS.build = 'd77fc888'; |
|
|
|
} |
|
|
|
} |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
@ -35238,7 +35245,7 @@ var WorkerMessageHandler = { |
|
|
|
var cancelXHRs = null; |
|
|
|
var cancelXHRs = null; |
|
|
|
var WorkerTasks = []; |
|
|
|
var WorkerTasks = []; |
|
|
|
var apiVersion = docParams.apiVersion; |
|
|
|
var apiVersion = docParams.apiVersion; |
|
|
|
var workerVersion = '2.0.258'; |
|
|
|
var workerVersion = '2.0.260'; |
|
|
|
if (apiVersion !== null && apiVersion !== workerVersion) { |
|
|
|
if (apiVersion !== null && apiVersion !== workerVersion) { |
|
|
|
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".')); |
|
|
|
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".')); |
|
|
|
} |
|
|
|
} |
|
|
@ -40583,6 +40590,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
xref: this.xref, |
|
|
|
xref: this.xref, |
|
|
|
res: resources, |
|
|
|
res: resources, |
|
|
|
image: image, |
|
|
|
image: image, |
|
|
|
|
|
|
|
isInline: inline, |
|
|
|
pdfFunctionFactory: this.pdfFunctionFactory |
|
|
|
pdfFunctionFactory: this.pdfFunctionFactory |
|
|
|
}); |
|
|
|
}); |
|
|
|
imgData = imageObj.createImageData(true); |
|
|
|
imgData = imageObj.createImageData(true); |
|
|
@ -40619,6 +40627,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
xref: this.xref, |
|
|
|
xref: this.xref, |
|
|
|
res: resources, |
|
|
|
res: resources, |
|
|
|
image: image, |
|
|
|
image: image, |
|
|
|
|
|
|
|
isInline: inline, |
|
|
|
nativeDecoder: nativeImageDecoder, |
|
|
|
nativeDecoder: nativeImageDecoder, |
|
|
|
pdfFunctionFactory: this.pdfFunctionFactory |
|
|
|
pdfFunctionFactory: this.pdfFunctionFactory |
|
|
|
}).then(function (imageObj) { |
|
|
|
}).then(function (imageObj) { |
|
|
@ -51935,6 +51944,8 @@ var PDFImage = function PDFImageClosure() { |
|
|
|
var xref = _ref.xref, |
|
|
|
var xref = _ref.xref, |
|
|
|
res = _ref.res, |
|
|
|
res = _ref.res, |
|
|
|
image = _ref.image, |
|
|
|
image = _ref.image, |
|
|
|
|
|
|
|
_ref$isInline = _ref.isInline, |
|
|
|
|
|
|
|
isInline = _ref$isInline === undefined ? false : _ref$isInline, |
|
|
|
_ref$smask = _ref.smask, |
|
|
|
_ref$smask = _ref.smask, |
|
|
|
smask = _ref$smask === undefined ? null : _ref$smask, |
|
|
|
smask = _ref$smask === undefined ? null : _ref$smask, |
|
|
|
_ref$mask = _ref.mask, |
|
|
|
_ref$mask = _ref.mask, |
|
|
@ -51996,7 +52007,8 @@ var PDFImage = function PDFImageClosure() { |
|
|
|
throw new Error('JPX images with ' + this.numComps + ' ' + 'color components not supported.'); |
|
|
|
throw new Error('JPX images with ' + this.numComps + ' ' + 'color components not supported.'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.colorSpace = _colorspace.ColorSpace.parse(colorSpace, xref, res, pdfFunctionFactory); |
|
|
|
var resources = isInline ? res : null; |
|
|
|
|
|
|
|
this.colorSpace = _colorspace.ColorSpace.parse(colorSpace, xref, resources, pdfFunctionFactory); |
|
|
|
this.numComps = this.colorSpace.numComps; |
|
|
|
this.numComps = this.colorSpace.numComps; |
|
|
|
} |
|
|
|
} |
|
|
|
this.decode = dict.getArray('Decode', 'D'); |
|
|
|
this.decode = dict.getArray('Decode', 'D'); |
|
|
@ -52018,6 +52030,7 @@ var PDFImage = function PDFImageClosure() { |
|
|
|
xref: xref, |
|
|
|
xref: xref, |
|
|
|
res: res, |
|
|
|
res: res, |
|
|
|
image: smask, |
|
|
|
image: smask, |
|
|
|
|
|
|
|
isInline: isInline, |
|
|
|
pdfFunctionFactory: pdfFunctionFactory |
|
|
|
pdfFunctionFactory: pdfFunctionFactory |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else if (mask) { |
|
|
|
} else if (mask) { |
|
|
@ -52031,6 +52044,7 @@ var PDFImage = function PDFImageClosure() { |
|
|
|
xref: xref, |
|
|
|
xref: xref, |
|
|
|
res: res, |
|
|
|
res: res, |
|
|
|
image: mask, |
|
|
|
image: mask, |
|
|
|
|
|
|
|
isInline: isInline, |
|
|
|
isMask: true, |
|
|
|
isMask: true, |
|
|
|
pdfFunctionFactory: pdfFunctionFactory |
|
|
|
pdfFunctionFactory: pdfFunctionFactory |
|
|
|
}); |
|
|
|
}); |
|
|
@ -52045,6 +52059,8 @@ var PDFImage = function PDFImageClosure() { |
|
|
|
xref = _ref2.xref, |
|
|
|
xref = _ref2.xref, |
|
|
|
res = _ref2.res, |
|
|
|
res = _ref2.res, |
|
|
|
image = _ref2.image, |
|
|
|
image = _ref2.image, |
|
|
|
|
|
|
|
_ref2$isInline = _ref2.isInline, |
|
|
|
|
|
|
|
isInline = _ref2$isInline === undefined ? false : _ref2$isInline, |
|
|
|
_ref2$nativeDecoder = _ref2.nativeDecoder, |
|
|
|
_ref2$nativeDecoder = _ref2.nativeDecoder, |
|
|
|
nativeDecoder = _ref2$nativeDecoder === undefined ? null : _ref2$nativeDecoder, |
|
|
|
nativeDecoder = _ref2$nativeDecoder === undefined ? null : _ref2$nativeDecoder, |
|
|
|
pdfFunctionFactory = _ref2.pdfFunctionFactory; |
|
|
|
pdfFunctionFactory = _ref2.pdfFunctionFactory; |
|
|
@ -52082,6 +52098,7 @@ var PDFImage = function PDFImageClosure() { |
|
|
|
xref: xref, |
|
|
|
xref: xref, |
|
|
|
res: res, |
|
|
|
res: res, |
|
|
|
image: imageData, |
|
|
|
image: imageData, |
|
|
|
|
|
|
|
isInline: isInline, |
|
|
|
smask: smaskData, |
|
|
|
smask: smaskData, |
|
|
|
mask: maskData, |
|
|
|
mask: maskData, |
|
|
|
pdfFunctionFactory: pdfFunctionFactory |
|
|
|
pdfFunctionFactory: pdfFunctionFactory |
|
|
|