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