|
|
@ -101,7 +101,7 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
|
|
Object.defineProperty(exports, "__esModule", { |
|
|
|
value: true |
|
|
|
value: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
exports.warn = exports.utf8StringToString = exports.stringToUTF8String = exports.stringToPDFString = exports.stringToBytes = exports.string32 = exports.shadow = exports.setVerbosityLevel = 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.isInt = exports.isEmptyObj = exports.isBool = exports.isArrayBuffer = exports.isArray = exports.info = exports.globalScope = exports.getVerbosityLevel = exports.getLookupTableFactory = exports.error = exports.deprecated = exports.createObjectURL = exports.createPromiseCapability = exports.createBlob = exports.bytesToString = exports.assert = exports.arraysToBytes = exports.arrayByteLength = exports.XRefParseException = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.StatTimer = exports.PasswordResponses = exports.PasswordException = exports.PageViewport = exports.NotImplementedException = exports.MissingPDFException = exports.MissingDataException = exports.MessageHandler = exports.InvalidPDFException = 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.warn = exports.utf8StringToString = exports.stringToUTF8String = exports.stringToPDFString = exports.stringToBytes = exports.string32 = exports.shadow = exports.setVerbosityLevel = 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.isInt = exports.isEmptyObj = exports.isBool = exports.isArrayBuffer = exports.isArray = exports.info = exports.globalScope = exports.getVerbosityLevel = exports.getLookupTableFactory = exports.error = exports.deprecated = exports.createObjectURL = exports.createPromiseCapability = exports.createBlob = exports.bytesToString = exports.assert = exports.arraysToBytes = exports.arrayByteLength = 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.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; }; |
|
|
|
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; }; |
|
|
|
|
|
|
|
|
|
|
@ -109,6 +109,11 @@ __w_pdfjs_require__(48); |
|
|
|
|
|
|
|
|
|
|
|
var globalScope = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : undefined; |
|
|
|
var globalScope = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : undefined; |
|
|
|
var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; |
|
|
|
var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; |
|
|
|
|
|
|
|
var NativeImageDecoding = { |
|
|
|
|
|
|
|
NONE: 'none', |
|
|
|
|
|
|
|
DECODE: 'decode', |
|
|
|
|
|
|
|
DISPLAY: 'display' |
|
|
|
|
|
|
|
}; |
|
|
|
var TextRenderingMode = { |
|
|
|
var TextRenderingMode = { |
|
|
|
FILL: 0, |
|
|
|
FILL: 0, |
|
|
|
STROKE: 1, |
|
|
|
STROKE: 1, |
|
|
@ -1131,6 +1136,7 @@ exports.InvalidPDFException = InvalidPDFException; |
|
|
|
exports.MessageHandler = MessageHandler; |
|
|
|
exports.MessageHandler = MessageHandler; |
|
|
|
exports.MissingDataException = MissingDataException; |
|
|
|
exports.MissingDataException = MissingDataException; |
|
|
|
exports.MissingPDFException = MissingPDFException; |
|
|
|
exports.MissingPDFException = MissingPDFException; |
|
|
|
|
|
|
|
exports.NativeImageDecoding = NativeImageDecoding; |
|
|
|
exports.NotImplementedException = NotImplementedException; |
|
|
|
exports.NotImplementedException = NotImplementedException; |
|
|
|
exports.PageViewport = PageViewport; |
|
|
|
exports.PageViewport = PageViewport; |
|
|
|
exports.PasswordException = PasswordException; |
|
|
|
exports.PasswordException = PasswordException; |
|
|
@ -11590,9 +11596,16 @@ function getDocument(src, pdfDataRangeTransport, passwordCallback, progressCallb |
|
|
|
params[key] = source[key]; |
|
|
|
params[key] = source[key]; |
|
|
|
} |
|
|
|
} |
|
|
|
params.rangeChunkSize = params.rangeChunkSize || DEFAULT_RANGE_CHUNK_SIZE; |
|
|
|
params.rangeChunkSize = params.rangeChunkSize || DEFAULT_RANGE_CHUNK_SIZE; |
|
|
|
params.disableNativeImageDecoder = params.disableNativeImageDecoder === true; |
|
|
|
|
|
|
|
params.ignoreErrors = params.stopAtErrors !== true; |
|
|
|
params.ignoreErrors = params.stopAtErrors !== true; |
|
|
|
var CMapReaderFactory = params.CMapReaderFactory || _dom_utils.DOMCMapReaderFactory; |
|
|
|
var CMapReaderFactory = params.CMapReaderFactory || _dom_utils.DOMCMapReaderFactory; |
|
|
|
|
|
|
|
if (params.disableNativeImageDecoder !== undefined) { |
|
|
|
|
|
|
|
(0, _util.deprecated)('parameter disableNativeImageDecoder, ' + 'use nativeImageDecoderSupport instead'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
params.nativeImageDecoderSupport = params.nativeImageDecoderSupport || (params.disableNativeImageDecoder === true ? _util.NativeImageDecoding.NONE : _util.NativeImageDecoding.DECODE); |
|
|
|
|
|
|
|
if (params.nativeImageDecoderSupport !== _util.NativeImageDecoding.DECODE && params.nativeImageDecoderSupport !== _util.NativeImageDecoding.NONE && params.nativeImageDecoderSupport !== _util.NativeImageDecoding.DISPLAY) { |
|
|
|
|
|
|
|
(0, _util.warn)('Invalid parameter nativeImageDecoderSupport: ' + 'need a state of enum {NativeImageDecoding}'); |
|
|
|
|
|
|
|
params.nativeImageDecoderSupport = _util.NativeImageDecoding.DECODE; |
|
|
|
|
|
|
|
} |
|
|
|
if (!worker) { |
|
|
|
if (!worker) { |
|
|
|
var workerPort = (0, _dom_utils.getDefaultSetting)('workerPort'); |
|
|
|
var workerPort = (0, _dom_utils.getDefaultSetting)('workerPort'); |
|
|
|
worker = workerPort ? new PDFWorker(null, workerPort) : new PDFWorker(); |
|
|
|
worker = workerPort ? new PDFWorker(null, workerPort) : new PDFWorker(); |
|
|
@ -11635,7 +11648,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { |
|
|
|
disableCreateObjectURL: (0, _dom_utils.getDefaultSetting)('disableCreateObjectURL'), |
|
|
|
disableCreateObjectURL: (0, _dom_utils.getDefaultSetting)('disableCreateObjectURL'), |
|
|
|
postMessageTransfers: (0, _dom_utils.getDefaultSetting)('postMessageTransfers') && !isPostMessageTransfersDisabled, |
|
|
|
postMessageTransfers: (0, _dom_utils.getDefaultSetting)('postMessageTransfers') && !isPostMessageTransfersDisabled, |
|
|
|
docBaseUrl: source.docBaseUrl, |
|
|
|
docBaseUrl: source.docBaseUrl, |
|
|
|
disableNativeImageDecoder: source.disableNativeImageDecoder, |
|
|
|
nativeImageDecoderSupport: source.nativeImageDecoderSupport, |
|
|
|
ignoreErrors: source.ignoreErrors |
|
|
|
ignoreErrors: source.ignoreErrors |
|
|
|
}).then(function (workerId) { |
|
|
|
}).then(function (workerId) { |
|
|
|
if (worker.destroyed) { |
|
|
|
if (worker.destroyed) { |
|
|
@ -12779,8 +12792,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var version, build; |
|
|
|
var version, build; |
|
|
|
{ |
|
|
|
{ |
|
|
|
exports.version = version = '1.8.337'; |
|
|
|
exports.version = version = '1.8.339'; |
|
|
|
exports.build = build = '595ee123'; |
|
|
|
exports.build = build = '9bfbf27f'; |
|
|
|
} |
|
|
|
} |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
@ -13642,8 +13655,8 @@ var SVGGraphics = function SVGGraphics() { |
|
|
|
var imgObj = this.objs.get(objId); |
|
|
|
var imgObj = this.objs.get(objId); |
|
|
|
var imgEl = document.createElementNS(NS, 'svg:image'); |
|
|
|
var imgEl = document.createElementNS(NS, 'svg:image'); |
|
|
|
imgEl.setAttributeNS(XLINK_NS, 'xlink:href', imgObj.src); |
|
|
|
imgEl.setAttributeNS(XLINK_NS, 'xlink:href', imgObj.src); |
|
|
|
imgEl.setAttributeNS(null, 'width', imgObj.width + 'px'); |
|
|
|
imgEl.setAttributeNS(null, 'width', pf(w)); |
|
|
|
imgEl.setAttributeNS(null, 'height', imgObj.height + 'px'); |
|
|
|
imgEl.setAttributeNS(null, 'height', pf(h)); |
|
|
|
imgEl.setAttributeNS(null, 'x', '0'); |
|
|
|
imgEl.setAttributeNS(null, 'x', '0'); |
|
|
|
imgEl.setAttributeNS(null, 'y', pf(-h)); |
|
|
|
imgEl.setAttributeNS(null, 'y', pf(-h)); |
|
|
|
imgEl.setAttributeNS(null, 'transform', 'scale(' + pf(1 / w) + ' ' + pf(-1 / h) + ')'); |
|
|
|
imgEl.setAttributeNS(null, 'transform', 'scale(' + pf(1 / w) + ' ' + pf(-1 / h) + ')'); |
|
|
@ -18108,6 +18121,7 @@ var IDENTITY_MATRIX = sharedUtil.IDENTITY_MATRIX; |
|
|
|
var UNSUPPORTED_FEATURES = sharedUtil.UNSUPPORTED_FEATURES; |
|
|
|
var UNSUPPORTED_FEATURES = sharedUtil.UNSUPPORTED_FEATURES; |
|
|
|
var ImageKind = sharedUtil.ImageKind; |
|
|
|
var ImageKind = sharedUtil.ImageKind; |
|
|
|
var OPS = sharedUtil.OPS; |
|
|
|
var OPS = sharedUtil.OPS; |
|
|
|
|
|
|
|
var NativeImageDecoding = sharedUtil.NativeImageDecoding; |
|
|
|
var TextRenderingMode = sharedUtil.TextRenderingMode; |
|
|
|
var TextRenderingMode = sharedUtil.TextRenderingMode; |
|
|
|
var CMapCompressionType = sharedUtil.CMapCompressionType; |
|
|
|
var CMapCompressionType = sharedUtil.CMapCompressionType; |
|
|
|
var Util = sharedUtil.Util; |
|
|
|
var Util = sharedUtil.Util; |
|
|
@ -18168,7 +18182,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
forceDataSchema: false, |
|
|
|
forceDataSchema: false, |
|
|
|
maxImageSize: -1, |
|
|
|
maxImageSize: -1, |
|
|
|
disableFontFace: false, |
|
|
|
disableFontFace: false, |
|
|
|
disableNativeImageDecoder: false, |
|
|
|
nativeImageDecoderSupport: NativeImageDecoding.DECODE, |
|
|
|
ignoreErrors: false |
|
|
|
ignoreErrors: false |
|
|
|
}; |
|
|
|
}; |
|
|
|
function NativeImageDecoder(xref, resources, handler, forceDataSchema) { |
|
|
|
function NativeImageDecoder(xref, resources, handler, forceDataSchema) { |
|
|
@ -18459,17 +18473,17 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
operatorList.addOp(OPS.paintInlineImageXObject, [imgData]); |
|
|
|
operatorList.addOp(OPS.paintInlineImageXObject, [imgData]); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var useNativeImageDecoder = !this.options.disableNativeImageDecoder; |
|
|
|
var nativeImageDecoderSupport = this.options.nativeImageDecoderSupport; |
|
|
|
var objId = 'img_' + this.idFactory.createObjId(); |
|
|
|
var objId = 'img_' + this.idFactory.createObjId(); |
|
|
|
operatorList.addDependency(objId); |
|
|
|
operatorList.addDependency(objId); |
|
|
|
args = [objId, w, h]; |
|
|
|
args = [objId, w, h]; |
|
|
|
if (useNativeImageDecoder && !softMask && !mask && image instanceof JpegStream && NativeImageDecoder.isSupported(image, this.xref, resources)) { |
|
|
|
if (nativeImageDecoderSupport !== NativeImageDecoding.NONE && !softMask && !mask && image instanceof JpegStream && NativeImageDecoder.isSupported(image, this.xref, resources)) { |
|
|
|
operatorList.addOp(OPS.paintJpegXObject, args); |
|
|
|
operatorList.addOp(OPS.paintJpegXObject, args); |
|
|
|
this.handler.send('obj', [objId, this.pageIndex, 'JpegStream', image.getIR(this.options.forceDataSchema)]); |
|
|
|
this.handler.send('obj', [objId, this.pageIndex, 'JpegStream', image.getIR(this.options.forceDataSchema)]); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var nativeImageDecoder = null; |
|
|
|
var nativeImageDecoder = null; |
|
|
|
if (useNativeImageDecoder && (image instanceof JpegStream || mask instanceof JpegStream || softMask instanceof JpegStream)) { |
|
|
|
if (nativeImageDecoderSupport === NativeImageDecoding.DECODE && (image instanceof JpegStream || mask instanceof JpegStream || softMask instanceof JpegStream)) { |
|
|
|
nativeImageDecoder = new NativeImageDecoder(this.xref, resources, this.handler, this.options.forceDataSchema); |
|
|
|
nativeImageDecoder = new NativeImageDecoder(this.xref, resources, this.handler, this.options.forceDataSchema); |
|
|
|
} |
|
|
|
} |
|
|
|
PDFImage.buildImage(this.handler, this.xref, resources, image, inline, nativeImageDecoder).then(function (imageObj) { |
|
|
|
PDFImage.buildImage(this.handler, this.xref, resources, image, inline, nativeImageDecoder).then(function (imageObj) { |
|
|
@ -27515,7 +27529,7 @@ var WorkerMessageHandler = { |
|
|
|
forceDataSchema: data.disableCreateObjectURL, |
|
|
|
forceDataSchema: data.disableCreateObjectURL, |
|
|
|
maxImageSize: data.maxImageSize === undefined ? -1 : data.maxImageSize, |
|
|
|
maxImageSize: data.maxImageSize === undefined ? -1 : data.maxImageSize, |
|
|
|
disableFontFace: data.disableFontFace, |
|
|
|
disableFontFace: data.disableFontFace, |
|
|
|
disableNativeImageDecoder: data.disableNativeImageDecoder, |
|
|
|
nativeImageDecoderSupport: data.nativeImageDecoderSupport, |
|
|
|
ignoreErrors: data.ignoreErrors |
|
|
|
ignoreErrors: data.ignoreErrors |
|
|
|
}; |
|
|
|
}; |
|
|
|
getPdfManager(data, evaluatorOptions).then(function (newPdfManager) { |
|
|
|
getPdfManager(data, evaluatorOptions).then(function (newPdfManager) { |
|
|
@ -28185,8 +28199,8 @@ if (!_util.globalScope.PDFJS) { |
|
|
|
} |
|
|
|
} |
|
|
|
var PDFJS = _util.globalScope.PDFJS; |
|
|
|
var PDFJS = _util.globalScope.PDFJS; |
|
|
|
{ |
|
|
|
{ |
|
|
|
PDFJS.version = '1.8.337'; |
|
|
|
PDFJS.version = '1.8.339'; |
|
|
|
PDFJS.build = '595ee123'; |
|
|
|
PDFJS.build = '9bfbf27f'; |
|
|
|
} |
|
|
|
} |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
@ -43772,8 +43786,8 @@ exports.TilingPattern = TilingPattern; |
|
|
|
"use strict"; |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '1.8.337'; |
|
|
|
var pdfjsVersion = '1.8.339'; |
|
|
|
var pdfjsBuild = '595ee123'; |
|
|
|
var pdfjsBuild = '9bfbf27f'; |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(26); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(10); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(10); |
|
|
@ -43796,6 +43810,7 @@ exports.PasswordResponses = pdfjsSharedUtil.PasswordResponses; |
|
|
|
exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException; |
|
|
|
exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException; |
|
|
|
exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException; |
|
|
|
exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException; |
|
|
|
exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics; |
|
|
|
exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics; |
|
|
|
|
|
|
|
exports.NativeImageDecoding = pdfjsSharedUtil.NativeImageDecoding; |
|
|
|
exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException; |
|
|
|
exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException; |
|
|
|
exports.OPS = pdfjsSharedUtil.OPS; |
|
|
|
exports.OPS = pdfjsSharedUtil.OPS; |
|
|
|
exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES; |
|
|
|
exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES; |
|
|
|