|
@@ -98,7 +98,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
-exports.unreachable = exports.warn = exports.utf8StringToString = exports.stringToUTF8String = exports.stringToPDFString = exports.stringToBytes = exports.string32 = exports.shadow = exports.setVerbosityLevel = exports.ReadableStream = exports.removeNullCharacters = exports.readUint32 = exports.readUint16 = exports.readInt8 = exports.log2 = exports.loadJpegStream = exports.isEvalSupported = exports.isLittleEndian = exports.createValidAbsoluteUrl = exports.isSameOrigin = exports.isNodeJS = exports.isSpace = exports.isString = exports.isNum = exports.isEmptyObj = exports.isBool = exports.isArrayBuffer = exports.isArray = exports.info = exports.getVerbosityLevel = exports.getLookupTableFactory = exports.deprecated = exports.createObjectURL = exports.createPromiseCapability = exports.createBlob = exports.bytesToString = exports.assert = exports.arraysToBytes = exports.arrayByteLength = exports.FormatError = exports.XRefParseException = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.StatTimer = exports.PasswordResponses = exports.PasswordException = exports.PageViewport = exports.NotImplementedException = exports.NativeImageDecoding = exports.MissingPDFException = exports.MissingDataException = exports.MessageHandler = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VERBOSITY_LEVELS = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = undefined;
|
|
|
+exports.unreachable = exports.warn = exports.utf8StringToString = exports.stringToUTF8String = exports.stringToPDFString = exports.stringToBytes = exports.string32 = exports.shadow = exports.setVerbosityLevel = exports.ReadableStream = exports.removeNullCharacters = exports.readUint32 = exports.readUint16 = exports.readInt8 = exports.log2 = exports.loadJpegStream = exports.isEvalSupported = exports.isLittleEndian = exports.createValidAbsoluteUrl = exports.isSameOrigin = exports.isNodeJS = exports.isSpace = exports.isString = exports.isNum = exports.isEmptyObj = exports.isBool = exports.isArrayBuffer = exports.info = exports.getVerbosityLevel = exports.getLookupTableFactory = exports.deprecated = exports.createObjectURL = exports.createPromiseCapability = exports.createBlob = exports.bytesToString = exports.assert = exports.arraysToBytes = exports.arrayByteLength = exports.FormatError = exports.XRefParseException = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.StatTimer = exports.PasswordResponses = exports.PasswordException = exports.PageViewport = exports.NotImplementedException = exports.NativeImageDecoding = exports.MissingPDFException = exports.MissingDataException = exports.MessageHandler = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VERBOSITY_LEVELS = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = undefined;
|
|
|
|
|
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
|
|
|
@@ -892,9 +892,6 @@ function isNum(v) {
|
|
|
function isString(v) {
|
|
|
return typeof v === 'string';
|
|
|
}
|
|
|
-function isArray(v) {
|
|
|
- return v instanceof Array;
|
|
|
-}
|
|
|
function isArrayBuffer(v) {
|
|
|
return (typeof v === 'undefined' ? 'undefined' : _typeof(v)) === 'object' && v !== null && v.byteLength !== undefined;
|
|
|
}
|
|
@@ -1452,7 +1449,6 @@ exports.deprecated = deprecated;
|
|
|
exports.getLookupTableFactory = getLookupTableFactory;
|
|
|
exports.getVerbosityLevel = getVerbosityLevel;
|
|
|
exports.info = info;
|
|
|
-exports.isArray = isArray;
|
|
|
exports.isArrayBuffer = isArrayBuffer;
|
|
|
exports.isBool = isBool;
|
|
|
exports.isEmptyObj = isEmptyObj;
|
|
@@ -1491,12 +1487,9 @@ exports.unreachable = unreachable;
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
-exports.isStream = exports.isRefsEqual = exports.isRef = exports.isName = exports.isDict = exports.isCmd = exports.isEOF = exports.RefSetCache = exports.RefSet = exports.Ref = exports.Name = exports.Dict = exports.Cmd = exports.EOF = undefined;
|
|
|
|
|
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
|
|
|
|
-var _util = __w_pdfjs_require__(0);
|
|
|
-
|
|
|
var EOF = {};
|
|
|
var Name = function NameClosure() {
|
|
|
function Name(name) {
|
|
@@ -1576,7 +1569,7 @@ var Dict = function DictClosure() {
|
|
|
var value = this.get(key1, key2, key3);
|
|
|
var xref = this.xref,
|
|
|
suppressEncryption = this.suppressEncryption;
|
|
|
- if (!(0, _util.isArray)(value) || !xref) {
|
|
|
+ if (!Array.isArray(value) || !xref) {
|
|
|
return value;
|
|
|
}
|
|
|
value = value.slice();
|
|
@@ -2442,7 +2435,7 @@ var JpegStream = function JpegStreamClosure() {
|
|
|
}
|
|
|
var jpegImage = new _jpg.JpegImage();
|
|
|
var decodeArr = this.dict.getArray('Decode', 'D');
|
|
|
- if (this.forceRGB && (0, _util.isArray)(decodeArr)) {
|
|
|
+ if (this.forceRGB && Array.isArray(decodeArr)) {
|
|
|
var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
|
|
|
var decodeArrLength = decodeArr.length;
|
|
|
var transform = new Int32Array(decodeArrLength);
|
|
@@ -4017,7 +4010,7 @@ var ColorSpace = function ColorSpaceClosure() {
|
|
|
return ColorSpace.fromIR(IR);
|
|
|
};
|
|
|
ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
|
|
|
- var name = (0, _util.isArray)(IR) ? IR[0] : IR;
|
|
|
+ var name = Array.isArray(IR) ? IR[0] : IR;
|
|
|
var whitePoint, blackPoint, gamma;
|
|
|
switch (name) {
|
|
|
case 'DeviceGrayCS':
|
|
@@ -4090,7 +4083,7 @@ var ColorSpace = function ColorSpaceClosure() {
|
|
|
throw new _util.FormatError('unrecognized colorspace ' + cs.name);
|
|
|
}
|
|
|
}
|
|
|
- if ((0, _util.isArray)(cs)) {
|
|
|
+ if (Array.isArray(cs)) {
|
|
|
var mode = xref.fetchIfRef(cs[0]).name;
|
|
|
var numComps, params, alt, whitePoint, blackPoint, gamma;
|
|
|
switch (mode) {
|
|
@@ -4155,7 +4148,7 @@ var ColorSpace = function ColorSpaceClosure() {
|
|
|
case 'Separation':
|
|
|
case 'DeviceN':
|
|
|
var name = xref.fetchIfRef(cs[1]);
|
|
|
- numComps = (0, _util.isArray)(name) ? name.length : 1;
|
|
|
+ numComps = Array.isArray(name) ? name.length : 1;
|
|
|
alt = ColorSpace.parseToIR(cs[2], xref, res);
|
|
|
var tintFnIR = _function.PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
|
|
|
return ['AlternateCS', numComps, alt, tintFnIR];
|
|
@@ -4172,7 +4165,7 @@ var ColorSpace = function ColorSpaceClosure() {
|
|
|
throw new _util.FormatError('unrecognized color space object: "' + cs + '"');
|
|
|
};
|
|
|
ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
|
|
|
- if (!(0, _util.isArray)(decode)) {
|
|
|
+ if (!Array.isArray(decode)) {
|
|
|
return true;
|
|
|
}
|
|
|
if (n * 2 !== decode.length) {
|
|
@@ -5261,7 +5254,7 @@ var Parser = function ParserClosure() {
|
|
|
filterName;
|
|
|
if ((0, _primitives.isName)(filter)) {
|
|
|
filterName = filter.name;
|
|
|
- } else if ((0, _util.isArray)(filter)) {
|
|
|
+ } else if (Array.isArray(filter)) {
|
|
|
var filterZero = this.xref.fetchIfRef(filter[0]);
|
|
|
if ((0, _primitives.isName)(filterZero)) {
|
|
|
filterName = filterZero.name;
|
|
@@ -5384,13 +5377,13 @@ var Parser = function ParserClosure() {
|
|
|
var filter = dict.get('Filter', 'F');
|
|
|
var params = dict.get('DecodeParms', 'DP');
|
|
|
if ((0, _primitives.isName)(filter)) {
|
|
|
- if ((0, _util.isArray)(params)) {
|
|
|
+ if (Array.isArray(params)) {
|
|
|
params = this.xref.fetchIfRef(params[0]);
|
|
|
}
|
|
|
return this.makeFilter(stream, filter.name, length, params);
|
|
|
}
|
|
|
var maybeLength = length;
|
|
|
- if ((0, _util.isArray)(filter)) {
|
|
|
+ if (Array.isArray(filter)) {
|
|
|
var filterArray = filter;
|
|
|
var paramsArray = params;
|
|
|
for (var i = 0, ii = filterArray.length; i < ii; ++i) {
|
|
@@ -5399,7 +5392,7 @@ var Parser = function ParserClosure() {
|
|
|
throw new _util.FormatError('Bad filter name: ' + filter);
|
|
|
}
|
|
|
params = null;
|
|
|
- if ((0, _util.isArray)(paramsArray) && i in paramsArray) {
|
|
|
+ if (Array.isArray(paramsArray) && i in paramsArray) {
|
|
|
params = this.xref.fetchIfRef(paramsArray[i]);
|
|
|
}
|
|
|
stream = this.makeFilter(stream, filter.name, maybeLength, params);
|
|
@@ -5868,7 +5861,7 @@ var Linearization = {
|
|
|
var hints = linDict.get('H'),
|
|
|
hintsLength,
|
|
|
item;
|
|
|
- if ((0, _util.isArray)(hints) && ((hintsLength = hints.length) === 2 || hintsLength === 4)) {
|
|
|
+ if (Array.isArray(hints) && ((hintsLength = hints.length) === 2 || hintsLength === 4)) {
|
|
|
for (var index = 0; index < hintsLength; index++) {
|
|
|
if (!(Number.isInteger(item = hints[index]) && item > 0)) {
|
|
|
throw new Error('Hint (' + index + ') in the linearization dictionary is invalid.');
|
|
@@ -6129,7 +6122,7 @@ var PDFFunction = function PDFFunctionClosure() {
|
|
|
return this.fromIR(IR);
|
|
|
},
|
|
|
parseArray: function PDFFunction_parseArray(xref, fnObj) {
|
|
|
- if (!(0, _util.isArray)(fnObj)) {
|
|
|
+ if (!Array.isArray(fnObj)) {
|
|
|
return this.parse(xref, fnObj);
|
|
|
}
|
|
|
var fnArray = [];
|
|
@@ -6247,7 +6240,7 @@ var PDFFunction = function PDFFunctionClosure() {
|
|
|
var c0 = dict.getArray('C0') || [0];
|
|
|
var c1 = dict.getArray('C1') || [1];
|
|
|
var n = dict.get('N');
|
|
|
- if (!(0, _util.isArray)(c0) || !(0, _util.isArray)(c1)) {
|
|
|
+ if (!Array.isArray(c0) || !Array.isArray(c1)) {
|
|
|
throw new _util.FormatError('Illegal dictionary for interpolated function');
|
|
|
}
|
|
|
var length = c0.length;
|
|
@@ -13453,8 +13446,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
|
|
|
}();
|
|
|
var version, build;
|
|
|
{
|
|
|
- exports.version = version = '1.9.514';
|
|
|
- exports.build = build = '22ade754';
|
|
|
+ exports.version = version = '1.9.516';
|
|
|
+ exports.build = build = '336d26dd';
|
|
|
}
|
|
|
exports.getDocument = getDocument;
|
|
|
exports.LoopbackPort = LoopbackPort;
|
|
@@ -14510,7 +14503,7 @@ var Catalog = function CatalogClosure() {
|
|
|
var flags = outlineDict.get('F') || 0;
|
|
|
var color = outlineDict.getArray('C'),
|
|
|
rgbColor = blackColor;
|
|
|
- if ((0, _util.isArray)(color) && color.length === 3 && (color[0] !== 0 || color[1] !== 0 || color[2] !== 0)) {
|
|
|
+ if (Array.isArray(color) && color.length === 3 && (color[0] !== 0 || color[1] !== 0 || color[2] !== 0)) {
|
|
|
rgbColor = _colorspace.ColorSpace.singletons.rgb.getRgb(color, 0);
|
|
|
}
|
|
|
var outlineItem = {
|
|
@@ -14850,7 +14843,7 @@ var Catalog = function CatalogClosure() {
|
|
|
continue;
|
|
|
}
|
|
|
var kids = currentNode.get('Kids');
|
|
|
- if (!(0, _util.isArray)(kids)) {
|
|
|
+ if (!Array.isArray(kids)) {
|
|
|
capability.reject(new _util.FormatError('page dictionary kids object is not an array'));
|
|
|
return;
|
|
|
}
|
|
@@ -15002,7 +14995,7 @@ var Catalog = function CatalogClosure() {
|
|
|
var baseUrl = url.split('#')[0];
|
|
|
if ((0, _util.isString)(remoteDest)) {
|
|
|
url = baseUrl + '#' + remoteDest;
|
|
|
- } else if ((0, _util.isArray)(remoteDest)) {
|
|
|
+ } else if (Array.isArray(remoteDest)) {
|
|
|
url = baseUrl + '#' + JSON.stringify(remoteDest);
|
|
|
}
|
|
|
}
|
|
@@ -15057,7 +15050,7 @@ var Catalog = function CatalogClosure() {
|
|
|
if ((0, _primitives.isName)(dest)) {
|
|
|
dest = dest.name;
|
|
|
}
|
|
|
- if ((0, _util.isString)(dest) || (0, _util.isArray)(dest)) {
|
|
|
+ if ((0, _util.isString)(dest) || Array.isArray(dest)) {
|
|
|
resultObj.dest = dest;
|
|
|
}
|
|
|
}
|
|
@@ -15629,7 +15622,7 @@ var NameOrNumberTree = function NameOrNumberTreeClosure() {
|
|
|
continue;
|
|
|
}
|
|
|
var entries = obj.get(this._type);
|
|
|
- if ((0, _util.isArray)(entries)) {
|
|
|
+ if (Array.isArray(entries)) {
|
|
|
for (i = 0, n = entries.length; i < n; i += 2) {
|
|
|
dict[xref.fetchIfRef(entries[i])] = xref.fetchIfRef(entries[i + 1]);
|
|
|
}
|
|
@@ -15652,7 +15645,7 @@ var NameOrNumberTree = function NameOrNumberTreeClosure() {
|
|
|
return null;
|
|
|
}
|
|
|
var kids = kidsOrEntries.get('Kids');
|
|
|
- if (!(0, _util.isArray)(kids)) {
|
|
|
+ if (!Array.isArray(kids)) {
|
|
|
return null;
|
|
|
}
|
|
|
l = 0;
|
|
@@ -15675,7 +15668,7 @@ var NameOrNumberTree = function NameOrNumberTreeClosure() {
|
|
|
}
|
|
|
}
|
|
|
var entries = kidsOrEntries.get(this._type);
|
|
|
- if ((0, _util.isArray)(entries)) {
|
|
|
+ if (Array.isArray(entries)) {
|
|
|
l = 0;
|
|
|
r = entries.length - 2;
|
|
|
while (l <= r) {
|
|
@@ -15787,7 +15780,7 @@ var FileSpec = function FileSpecClosure() {
|
|
|
}();
|
|
|
var ObjectLoader = function () {
|
|
|
function mayHaveChildren(value) {
|
|
|
- return (0, _primitives.isRef)(value) || (0, _primitives.isDict)(value) || (0, _util.isArray)(value) || (0, _primitives.isStream)(value);
|
|
|
+ return (0, _primitives.isRef)(value) || (0, _primitives.isDict)(value) || Array.isArray(value) || (0, _primitives.isStream)(value);
|
|
|
}
|
|
|
function addChildren(node, nodesToVisit) {
|
|
|
if ((0, _primitives.isDict)(node) || (0, _primitives.isStream)(node)) {
|
|
@@ -15799,7 +15792,7 @@ var ObjectLoader = function () {
|
|
|
nodesToVisit.push(rawValue);
|
|
|
}
|
|
|
}
|
|
|
- } else if ((0, _util.isArray)(node)) {
|
|
|
+ } else if (Array.isArray(node)) {
|
|
|
for (var _i = 0, _ii = node.length; _i < _ii; _i++) {
|
|
|
var value = node[_i];
|
|
|
if (mayHaveChildren(value)) {
|
|
@@ -21155,7 +21148,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
|
|
|
xObjStateManager = new StateManager(currentState);
|
|
|
matrix = xobj.dict.getArray('Matrix');
|
|
|
|
|
|
- if ((0, _util.isArray)(matrix) && matrix.length === 6) {
|
|
|
+ if (Array.isArray(matrix) && matrix.length === 6) {
|
|
|
xObjStateManager.transform(matrix);
|
|
|
}
|
|
|
enqueueChunk();
|
|
@@ -21486,7 +21479,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
|
|
|
for (i = 0, ii = widths.length; i < ii; i++) {
|
|
|
start = xref.fetchIfRef(widths[i++]);
|
|
|
code = xref.fetchIfRef(widths[i]);
|
|
|
- if ((0, _util.isArray)(code)) {
|
|
|
+ if (Array.isArray(code)) {
|
|
|
for (j = 0, jj = code.length; j < jj; j++) {
|
|
|
glyphsWidths[start++] = xref.fetchIfRef(code[j]);
|
|
|
}
|
|
@@ -21506,7 +21499,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
|
|
|
for (i = 0, ii = vmetrics.length; i < ii; i++) {
|
|
|
start = xref.fetchIfRef(vmetrics[i++]);
|
|
|
code = xref.fetchIfRef(vmetrics[i]);
|
|
|
- if ((0, _util.isArray)(code)) {
|
|
|
+ if (Array.isArray(code)) {
|
|
|
for (j = 0, jj = code.length; j < jj; j++) {
|
|
|
glyphsVMetrics[start++] = [xref.fetchIfRef(code[j++]), xref.fetchIfRef(code[j++]), xref.fetchIfRef(code[j])];
|
|
|
}
|
|
@@ -21621,7 +21614,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
|
|
|
if (!df) {
|
|
|
throw new _util.FormatError('Descendant fonts are not specified');
|
|
|
}
|
|
|
- dict = (0, _util.isArray)(df) ? this.xref.fetchIfRef(df[0]) : df;
|
|
|
+ dict = Array.isArray(df) ? this.xref.fetchIfRef(df[0]) : df;
|
|
|
type = dict.get('Subtype');
|
|
|
if (!(0, _primitives.isName)(type)) {
|
|
|
throw new _util.FormatError('invalid font Subtype');
|
|
@@ -21644,7 +21637,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() {
|
|
|
hash.update(entry.name);
|
|
|
} else if ((0, _primitives.isRef)(entry)) {
|
|
|
hash.update(entry.toString());
|
|
|
- } else if ((0, _util.isArray)(entry)) {
|
|
|
+ } else if (Array.isArray(entry)) {
|
|
|
var diffLength = entry.length,
|
|
|
diffBuf = new Array(diffLength);
|
|
|
for (var j = 0; j < diffLength; j++) {
|
|
@@ -23530,7 +23523,7 @@ var CFFParser = function CFFParserClosure() {
|
|
|
return;
|
|
|
}
|
|
|
var privateOffset = parentDict.getByName('Private');
|
|
|
- if (!(0, _util.isArray)(privateOffset) || privateOffset.length !== 2) {
|
|
|
+ if (!Array.isArray(privateOffset) || privateOffset.length !== 2) {
|
|
|
parentDict.removeByName('Private');
|
|
|
return;
|
|
|
}
|
|
@@ -23847,12 +23840,12 @@ var CFFDict = function CFFDictClosure() {
|
|
|
};
|
|
|
for (var i = 0, ii = layout.length; i < ii; ++i) {
|
|
|
var entry = layout[i];
|
|
|
- var key = (0, _util.isArray)(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
|
|
|
+ var key = Array.isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
|
|
|
tables.keyToNameMap[key] = entry[1];
|
|
|
tables.nameToKeyMap[entry[1]] = key;
|
|
|
tables.types[key] = entry[2];
|
|
|
tables.defaults[key] = entry[3];
|
|
|
- tables.opcodes[key] = (0, _util.isArray)(entry[0]) ? entry[0] : [entry[0]];
|
|
|
+ tables.opcodes[key] = Array.isArray(entry[0]) ? entry[0] : [entry[0]];
|
|
|
tables.order.push(key);
|
|
|
}
|
|
|
return tables;
|
|
@@ -24162,10 +24155,10 @@ var CFFCompiler = function CFFCompilerClosure() {
|
|
|
}
|
|
|
var values = dict.values[key];
|
|
|
var types = dict.types[key];
|
|
|
- if (!(0, _util.isArray)(types)) {
|
|
|
+ if (!Array.isArray(types)) {
|
|
|
types = [types];
|
|
|
}
|
|
|
- if (!(0, _util.isArray)(values)) {
|
|
|
+ if (!Array.isArray(values)) {
|
|
|
values = [values];
|
|
|
}
|
|
|
if (values.length === 0) {
|
|
@@ -29150,10 +29143,10 @@ var SVGGraphics = function SVGGraphics() {
|
|
|
this.paintInlineImageXObject(imgData, mask);
|
|
|
},
|
|
|
paintFormXObjectBegin: function SVGGraphics_paintFormXObjectBegin(matrix, bbox) {
|
|
|
- if ((0, _util.isArray)(matrix) && matrix.length === 6) {
|
|
|
+ if (Array.isArray(matrix) && matrix.length === 6) {
|
|
|
this.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
|
|
|
}
|
|
|
- if ((0, _util.isArray)(bbox) && bbox.length === 4) {
|
|
|
+ if (Array.isArray(bbox) && bbox.length === 4) {
|
|
|
var width = bbox[2] - bbox[0];
|
|
|
var height = bbox[3] - bbox[1];
|
|
|
var cliprect = document.createElementNS(NS, 'svg:rect');
|
|
@@ -29217,8 +29210,8 @@ exports.SVGGraphics = SVGGraphics;
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
-var pdfjsVersion = '1.9.514';
|
|
|
-var pdfjsBuild = '22ade754';
|
|
|
+var pdfjsVersion = '1.9.516';
|
|
|
+var pdfjsBuild = '336d26dd';
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0);
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(98);
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(55);
|
|
@@ -35080,8 +35073,8 @@ if (!_global_scope2.default.PDFJS) {
|
|
|
}
|
|
|
var PDFJS = _global_scope2.default.PDFJS;
|
|
|
{
|
|
|
- PDFJS.version = '1.9.514';
|
|
|
- PDFJS.build = '22ade754';
|
|
|
+ PDFJS.version = '1.9.516';
|
|
|
+ PDFJS.build = '336d26dd';
|
|
|
}
|
|
|
PDFJS.pdfBug = false;
|
|
|
if (PDFJS.verbosity !== undefined) {
|
|
@@ -36839,11 +36832,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
|
|
|
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) {
|
|
|
this.save();
|
|
|
this.baseTransformStack.push(this.baseTransform);
|
|
|
- if ((0, _util.isArray)(matrix) && matrix.length === 6) {
|
|
|
+ if (Array.isArray(matrix) && matrix.length === 6) {
|
|
|
this.transform.apply(this, matrix);
|
|
|
}
|
|
|
this.baseTransform = this.ctx.mozCurrentTransform;
|
|
|
- if ((0, _util.isArray)(bbox) && bbox.length === 4) {
|
|
|
+ if (Array.isArray(bbox) && bbox.length === 4) {
|
|
|
var width = bbox[2] - bbox[0];
|
|
|
var height = bbox[3] - bbox[1];
|
|
|
this.ctx.rect(bbox[0], bbox[1], width, height);
|
|
@@ -36951,7 +36944,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
|
|
|
this.save();
|
|
|
resetCtxToDefault(this.ctx);
|
|
|
this.current = new CanvasExtraState();
|
|
|
- if ((0, _util.isArray)(rect) && rect.length === 4) {
|
|
|
+ if (Array.isArray(rect) && rect.length === 4) {
|
|
|
var width = rect[2] - rect[0];
|
|
|
var height = rect[3] - rect[1];
|
|
|
this.ctx.rect(rect[0], rect[1], width, height);
|
|
@@ -37556,7 +37549,7 @@ var TilingPattern = function TilingPatternClosure() {
|
|
|
this.ctx.scale(1 / scale[0], 1 / scale[1]);
|
|
|
},
|
|
|
clipBbox: function clipBbox(graphics, bbox, x0, y0, x1, y1) {
|
|
|
- if ((0, _util.isArray)(bbox) && bbox.length === 4) {
|
|
|
+ if (Array.isArray(bbox) && bbox.length === 4) {
|
|
|
var bboxWidth = x1 - x0;
|
|
|
var bboxHeight = y1 - y0;
|
|
|
graphics.ctx.rect(x0, y0, bboxWidth, bboxHeight);
|
|
@@ -38693,14 +38686,14 @@ var Page = function PageClosure() {
|
|
|
},
|
|
|
get mediaBox() {
|
|
|
var mediaBox = this.getInheritedPageProp('MediaBox', true);
|
|
|
- if (!(0, _util.isArray)(mediaBox) || mediaBox.length !== 4) {
|
|
|
+ if (!Array.isArray(mediaBox) || mediaBox.length !== 4) {
|
|
|
return (0, _util.shadow)(this, 'mediaBox', LETTER_SIZE_MEDIABOX);
|
|
|
}
|
|
|
return (0, _util.shadow)(this, 'mediaBox', mediaBox);
|
|
|
},
|
|
|
get cropBox() {
|
|
|
var cropBox = this.getInheritedPageProp('CropBox', true);
|
|
|
- if (!(0, _util.isArray)(cropBox) || cropBox.length !== 4) {
|
|
|
+ if (!Array.isArray(cropBox) || cropBox.length !== 4) {
|
|
|
return (0, _util.shadow)(this, 'cropBox', this.mediaBox);
|
|
|
}
|
|
|
return (0, _util.shadow)(this, 'cropBox', cropBox);
|
|
@@ -38735,7 +38728,7 @@ var Page = function PageClosure() {
|
|
|
getContentStream: function Page_getContentStream() {
|
|
|
var content = this.content;
|
|
|
var stream;
|
|
|
- if ((0, _util.isArray)(content)) {
|
|
|
+ if (Array.isArray(content)) {
|
|
|
var xref = this.xref;
|
|
|
var i,
|
|
|
n = content.length;
|
|
@@ -38958,7 +38951,7 @@ var PDFDocument = function PDFDocumentClosure() {
|
|
|
if (this.acroForm) {
|
|
|
this.xfa = this.acroForm.get('XFA');
|
|
|
var fields = this.acroForm.get('Fields');
|
|
|
- if ((!fields || !(0, _util.isArray)(fields) || fields.length === 0) && !this.xfa) {
|
|
|
+ if ((!fields || !Array.isArray(fields) || fields.length === 0) && !this.xfa) {
|
|
|
this.acroForm = null;
|
|
|
}
|
|
|
}
|
|
@@ -39107,7 +39100,7 @@ var PDFDocument = function PDFDocumentClosure() {
|
|
|
hash,
|
|
|
fileID = '';
|
|
|
var idArray = xref.trailer.get('ID');
|
|
|
- if (idArray && (0, _util.isArray)(idArray) && idArray[0] && (0, _util.isString)(idArray[0]) && idArray[0] !== EMPTY_FINGERPRINT) {
|
|
|
+ if (Array.isArray(idArray) && idArray[0] && (0, _util.isString)(idArray[0]) && idArray[0] !== EMPTY_FINGERPRINT) {
|
|
|
hash = (0, _util.stringToBytes)(idArray[0]);
|
|
|
} else {
|
|
|
if (this.stream.ensureRange) {
|
|
@@ -44586,7 +44579,7 @@ var Type1Font = function Type1FontClosure() {
|
|
|
continue;
|
|
|
}
|
|
|
var value = properties.privateData[field];
|
|
|
- if ((0, _util.isArray)(value)) {
|
|
|
+ if (Array.isArray(value)) {
|
|
|
for (var j = value.length - 1; j > 0; j--) {
|
|
|
value[j] -= value[j - 1];
|
|
|
}
|
|
@@ -50251,7 +50244,7 @@ var PDFImage = function PDFImageClosure() {
|
|
|
if (mask) {
|
|
|
if ((0, _primitives.isStream)(mask)) {
|
|
|
maskPromise = handleImageData(mask, nativeDecoder);
|
|
|
- } else if ((0, _util.isArray)(mask)) {
|
|
|
+ } else if (Array.isArray(mask)) {
|
|
|
maskPromise = Promise.resolve(mask);
|
|
|
} else {
|
|
|
(0, _util.warn)('Unsupported mask format.');
|
|
@@ -50412,7 +50405,7 @@ var PDFImage = function PDFImageClosure() {
|
|
|
if (sw !== width || sh !== height) {
|
|
|
alphaBuf = resizeImageMask(alphaBuf, mask.bpc, sw, sh, width, height);
|
|
|
}
|
|
|
- } else if ((0, _util.isArray)(mask)) {
|
|
|
+ } else if (Array.isArray(mask)) {
|
|
|
alphaBuf = new Uint8Array(width * height);
|
|
|
var numComps = this.numComps;
|
|
|
for (i = 0, ii = width * height; i < ii; ++i) {
|
|
@@ -50752,7 +50745,7 @@ var Annotation = function () {
|
|
|
}, {
|
|
|
key: 'setRectangle',
|
|
|
value: function setRectangle(rectangle) {
|
|
|
- if ((0, _util.isArray)(rectangle) && rectangle.length === 4) {
|
|
|
+ if (Array.isArray(rectangle) && rectangle.length === 4) {
|
|
|
this.rectangle = _util.Util.normalizeRect(rectangle);
|
|
|
} else {
|
|
|
this.rectangle = [0, 0, 0, 0];
|
|
@@ -50762,7 +50755,7 @@ var Annotation = function () {
|
|
|
key: 'setColor',
|
|
|
value: function setColor(color) {
|
|
|
var rgbColor = new Uint8Array(3);
|
|
|
- if (!(0, _util.isArray)(color)) {
|
|
|
+ if (!Array.isArray(color)) {
|
|
|
this.color = rgbColor;
|
|
|
return;
|
|
|
}
|
|
@@ -50804,7 +50797,7 @@ var Annotation = function () {
|
|
|
}
|
|
|
} else if (borderStyle.has('Border')) {
|
|
|
var array = borderStyle.getArray('Border');
|
|
|
- if ((0, _util.isArray)(array) && array.length >= 3) {
|
|
|
+ if (Array.isArray(array) && array.length >= 3) {
|
|
|
this.borderStyle.setHorizontalCornerRadius(array[0]);
|
|
|
this.borderStyle.setVerticalCornerRadius(array[1]);
|
|
|
this.borderStyle.setWidth(array[2]);
|
|
@@ -50958,7 +50951,7 @@ var AnnotationBorderStyle = function () {
|
|
|
}, {
|
|
|
key: 'setDashArray',
|
|
|
value: function setDashArray(dashArray) {
|
|
|
- if ((0, _util.isArray)(dashArray) && dashArray.length > 0) {
|
|
|
+ if (Array.isArray(dashArray) && dashArray.length > 0) {
|
|
|
var isValid = true;
|
|
|
var allZeros = true;
|
|
|
for (var i = 0, len = dashArray.length; i < len; i++) {
|
|
@@ -51178,18 +51171,18 @@ var ChoiceWidgetAnnotation = function (_WidgetAnnotation3) {
|
|
|
|
|
|
_this5.data.options = [];
|
|
|
var options = _util.Util.getInheritableProperty(params.dict, 'Opt');
|
|
|
- if ((0, _util.isArray)(options)) {
|
|
|
+ if (Array.isArray(options)) {
|
|
|
var xref = params.xref;
|
|
|
for (var i = 0, ii = options.length; i < ii; i++) {
|
|
|
var option = xref.fetchIfRef(options[i]);
|
|
|
- var isOptionArray = (0, _util.isArray)(option);
|
|
|
+ var isOptionArray = Array.isArray(option);
|
|
|
_this5.data.options[i] = {
|
|
|
exportValue: isOptionArray ? xref.fetchIfRef(option[0]) : option,
|
|
|
displayValue: isOptionArray ? xref.fetchIfRef(option[1]) : option
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
- if (!(0, _util.isArray)(_this5.data.fieldValue)) {
|
|
|
+ if (!Array.isArray(_this5.data.fieldValue)) {
|
|
|
_this5.data.fieldValue = [_this5.data.fieldValue];
|
|
|
}
|
|
|
_this5.data.combo = _this5.hasFieldFlag(_util.AnnotationFieldFlag.COMBO);
|