|
|
@ -1138,7 +1138,8 @@ MessageHandler.prototype = { |
|
|
|
var startCapability = createPromiseCapability(); |
|
|
|
var startCapability = createPromiseCapability(); |
|
|
|
_this2.streamControllers[streamId] = { |
|
|
|
_this2.streamControllers[streamId] = { |
|
|
|
controller: controller, |
|
|
|
controller: controller, |
|
|
|
startCall: startCapability |
|
|
|
startCall: startCapability, |
|
|
|
|
|
|
|
isClosed: false |
|
|
|
}; |
|
|
|
}; |
|
|
|
_this2.postMessage({ |
|
|
|
_this2.postMessage({ |
|
|
|
sourceName: sourceName, |
|
|
|
sourceName: sourceName, |
|
|
@ -1165,6 +1166,7 @@ MessageHandler.prototype = { |
|
|
|
cancel: function cancel(reason) { |
|
|
|
cancel: function cancel(reason) { |
|
|
|
var cancelCapability = createPromiseCapability(); |
|
|
|
var cancelCapability = createPromiseCapability(); |
|
|
|
_this2.streamControllers[streamId].cancelCall = cancelCapability; |
|
|
|
_this2.streamControllers[streamId].cancelCall = cancelCapability; |
|
|
|
|
|
|
|
_this2.streamControllers[streamId].isClosed = true; |
|
|
|
_this2.postMessage({ |
|
|
|
_this2.postMessage({ |
|
|
|
sourceName: sourceName, |
|
|
|
sourceName: sourceName, |
|
|
|
targetName: targetName, |
|
|
|
targetName: targetName, |
|
|
@ -1310,9 +1312,15 @@ MessageHandler.prototype = { |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'enqueue': |
|
|
|
case 'enqueue': |
|
|
|
|
|
|
|
if (!this.streamControllers[data.streamId].isClosed) { |
|
|
|
this.streamControllers[data.streamId].controller.enqueue(data.chunk); |
|
|
|
this.streamControllers[data.streamId].controller.enqueue(data.chunk); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'close': |
|
|
|
case 'close': |
|
|
|
|
|
|
|
if (this.streamControllers[data.streamId].isClosed) { |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.streamControllers[data.streamId].isClosed = true; |
|
|
|
this.streamControllers[data.streamId].controller.close(); |
|
|
|
this.streamControllers[data.streamId].controller.close(); |
|
|
|
deleteStreamController(); |
|
|
|
deleteStreamController(); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -1325,6 +1333,9 @@ MessageHandler.prototype = { |
|
|
|
deleteStreamController(); |
|
|
|
deleteStreamController(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'cancel': |
|
|
|
case 'cancel': |
|
|
|
|
|
|
|
if (!this.streamSinks[data.streamId]) { |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
resolveCall(this.streamSinks[data.streamId].onCancel, [data.reason]).then(function () { |
|
|
|
resolveCall(this.streamSinks[data.streamId].onCancel, [data.reason]).then(function () { |
|
|
|
sendStreamResponse({ |
|
|
|
sendStreamResponse({ |
|
|
|
stream: 'cancel_complete', |
|
|
|
stream: 'cancel_complete', |
|
|
@ -12209,12 +12220,46 @@ var PDFPageProxy = function PDFPageProxyClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
return intentState.opListReadCapability.promise; |
|
|
|
return intentState.opListReadCapability.promise; |
|
|
|
}, |
|
|
|
}, |
|
|
|
getTextContent: function PDFPageProxy_getTextContent(params) { |
|
|
|
streamTextContent: function streamTextContent() { |
|
|
|
params = params || {}; |
|
|
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
|
|
|
return this.transport.messageHandler.sendWithPromise('GetTextContent', { |
|
|
|
|
|
|
|
|
|
|
|
var TEXT_CONTENT_CHUNK_SIZE = 100; |
|
|
|
|
|
|
|
return this.transport.messageHandler.sendWithStream('GetTextContent', { |
|
|
|
pageIndex: this.pageNumber - 1, |
|
|
|
pageIndex: this.pageNumber - 1, |
|
|
|
normalizeWhitespace: params.normalizeWhitespace === true, |
|
|
|
normalizeWhitespace: params.normalizeWhitespace === true, |
|
|
|
combineTextItems: params.disableCombineTextItems !== true |
|
|
|
combineTextItems: params.disableCombineTextItems !== true |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
highWaterMark: TEXT_CONTENT_CHUNK_SIZE, |
|
|
|
|
|
|
|
size: function size(textContent) { |
|
|
|
|
|
|
|
return textContent.items.length; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getTextContent: function PDFPageProxy_getTextContent(params) { |
|
|
|
|
|
|
|
params = params || {}; |
|
|
|
|
|
|
|
var readableStream = this.streamTextContent(params); |
|
|
|
|
|
|
|
return new Promise(function (resolve, reject) { |
|
|
|
|
|
|
|
function pump() { |
|
|
|
|
|
|
|
reader.read().then(function (_ref) { |
|
|
|
|
|
|
|
var value = _ref.value, |
|
|
|
|
|
|
|
done = _ref.done; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (done) { |
|
|
|
|
|
|
|
resolve(textContent); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
_util.Util.extendObj(textContent.styles, value.styles); |
|
|
|
|
|
|
|
_util.Util.appendToArray(textContent.items, value.items); |
|
|
|
|
|
|
|
pump(); |
|
|
|
|
|
|
|
}, reject); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var reader = readableStream.getReader(); |
|
|
|
|
|
|
|
var textContent = { |
|
|
|
|
|
|
|
items: [], |
|
|
|
|
|
|
|
styles: Object.create(null) |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
pump(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_destroy: function PDFPageProxy_destroy() { |
|
|
|
_destroy: function PDFPageProxy_destroy() { |
|
|
@ -13080,8 +13125,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var version, build; |
|
|
|
var version, build; |
|
|
|
{ |
|
|
|
{ |
|
|
|
exports.version = version = '1.8.482'; |
|
|
|
exports.version = version = '1.8.484'; |
|
|
|
exports.build = build = 'd1567a94'; |
|
|
|
exports.build = build = 'e2ca894f'; |
|
|
|
} |
|
|
|
} |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
@ -14156,6 +14201,9 @@ var renderTextLayer = function renderTextLayerClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
task._textDivProperties.set(textDiv, textDivProperties); |
|
|
|
task._textDivProperties.set(textDiv, textDivProperties); |
|
|
|
|
|
|
|
if (task._textContentStream) { |
|
|
|
|
|
|
|
task._layoutText(textDiv); |
|
|
|
|
|
|
|
} |
|
|
|
if (task._enhanceTextSelection) { |
|
|
|
if (task._enhanceTextSelection) { |
|
|
|
var angleCos = 1, |
|
|
|
var angleCos = 1, |
|
|
|
angleSin = 0; |
|
|
|
angleSin = 0; |
|
|
@ -14187,7 +14235,6 @@ var renderTextLayer = function renderTextLayerClosure() { |
|
|
|
if (task._canceled) { |
|
|
|
if (task._canceled) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var textLayerFrag = task._container; |
|
|
|
|
|
|
|
var textDivs = task._textDivs; |
|
|
|
var textDivs = task._textDivs; |
|
|
|
var capability = task._capability; |
|
|
|
var capability = task._capability; |
|
|
|
var textDivsLength = textDivs.length; |
|
|
|
var textDivsLength = textDivs.length; |
|
|
@ -14196,38 +14243,10 @@ var renderTextLayer = function renderTextLayerClosure() { |
|
|
|
capability.resolve(); |
|
|
|
capability.resolve(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var canvas = document.createElement('canvas'); |
|
|
|
if (!task._textContentStream) { |
|
|
|
var ctx = canvas.getContext('2d', { alpha: false }); |
|
|
|
|
|
|
|
var lastFontSize; |
|
|
|
|
|
|
|
var lastFontFamily; |
|
|
|
|
|
|
|
for (var i = 0; i < textDivsLength; i++) { |
|
|
|
for (var i = 0; i < textDivsLength; i++) { |
|
|
|
var textDiv = textDivs[i]; |
|
|
|
task._layoutText(textDivs[i]); |
|
|
|
var textDivProperties = task._textDivProperties.get(textDiv); |
|
|
|
|
|
|
|
if (textDivProperties.isWhitespace) { |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
var fontSize = textDiv.style.fontSize; |
|
|
|
|
|
|
|
var fontFamily = textDiv.style.fontFamily; |
|
|
|
|
|
|
|
if (fontSize !== lastFontSize || fontFamily !== lastFontFamily) { |
|
|
|
|
|
|
|
ctx.font = fontSize + ' ' + fontFamily; |
|
|
|
|
|
|
|
lastFontSize = fontSize; |
|
|
|
|
|
|
|
lastFontFamily = fontFamily; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var width = ctx.measureText(textDiv.textContent).width; |
|
|
|
|
|
|
|
textLayerFrag.appendChild(textDiv); |
|
|
|
|
|
|
|
var transform = ''; |
|
|
|
|
|
|
|
if (textDivProperties.canvasWidth !== 0 && width > 0) { |
|
|
|
|
|
|
|
textDivProperties.scale = textDivProperties.canvasWidth / width; |
|
|
|
|
|
|
|
transform = 'scaleX(' + textDivProperties.scale + ')'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (textDivProperties.angle !== 0) { |
|
|
|
|
|
|
|
transform = 'rotate(' + textDivProperties.angle + 'deg) ' + transform; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (transform !== '') { |
|
|
|
|
|
|
|
textDivProperties.originalTransform = transform; |
|
|
|
|
|
|
|
_dom_utils.CustomStyle.setProp('transform', textDiv, transform); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
task._textDivProperties.set(textDiv, textDivProperties); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
task._renderingDone = true; |
|
|
|
task._renderingDone = true; |
|
|
|
capability.resolve(); |
|
|
|
capability.resolve(); |
|
|
@ -14457,24 +14476,42 @@ var renderTextLayer = function renderTextLayerClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
function TextLayerRenderTask(textContent, container, viewport, textDivs, enhanceTextSelection) { |
|
|
|
function TextLayerRenderTask(_ref) { |
|
|
|
|
|
|
|
var textContent = _ref.textContent, |
|
|
|
|
|
|
|
textContentStream = _ref.textContentStream, |
|
|
|
|
|
|
|
container = _ref.container, |
|
|
|
|
|
|
|
viewport = _ref.viewport, |
|
|
|
|
|
|
|
textDivs = _ref.textDivs, |
|
|
|
|
|
|
|
textContentItemsStr = _ref.textContentItemsStr, |
|
|
|
|
|
|
|
enhanceTextSelection = _ref.enhanceTextSelection; |
|
|
|
|
|
|
|
|
|
|
|
this._textContent = textContent; |
|
|
|
this._textContent = textContent; |
|
|
|
|
|
|
|
this._textContentStream = textContentStream; |
|
|
|
this._container = container; |
|
|
|
this._container = container; |
|
|
|
this._viewport = viewport; |
|
|
|
this._viewport = viewport; |
|
|
|
this._textDivs = textDivs || []; |
|
|
|
this._textDivs = textDivs || []; |
|
|
|
|
|
|
|
this._textContentItemsStr = textContentItemsStr || []; |
|
|
|
|
|
|
|
this._enhanceTextSelection = !!enhanceTextSelection; |
|
|
|
|
|
|
|
this._reader = null; |
|
|
|
|
|
|
|
this._layoutTextLastFontSize = null; |
|
|
|
|
|
|
|
this._layoutTextLastFontFamily = null; |
|
|
|
|
|
|
|
this._layoutTextCtx = null; |
|
|
|
this._textDivProperties = new WeakMap(); |
|
|
|
this._textDivProperties = new WeakMap(); |
|
|
|
this._renderingDone = false; |
|
|
|
this._renderingDone = false; |
|
|
|
this._canceled = false; |
|
|
|
this._canceled = false; |
|
|
|
this._capability = (0, _util.createPromiseCapability)(); |
|
|
|
this._capability = (0, _util.createPromiseCapability)(); |
|
|
|
this._renderTimer = null; |
|
|
|
this._renderTimer = null; |
|
|
|
this._bounds = []; |
|
|
|
this._bounds = []; |
|
|
|
this._enhanceTextSelection = !!enhanceTextSelection; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
TextLayerRenderTask.prototype = { |
|
|
|
TextLayerRenderTask.prototype = { |
|
|
|
get promise() { |
|
|
|
get promise() { |
|
|
|
return this._capability.promise; |
|
|
|
return this._capability.promise; |
|
|
|
}, |
|
|
|
}, |
|
|
|
cancel: function TextLayer_cancel() { |
|
|
|
cancel: function TextLayer_cancel() { |
|
|
|
|
|
|
|
if (this._reader) { |
|
|
|
|
|
|
|
this._reader.cancel(); |
|
|
|
|
|
|
|
this._reader = null; |
|
|
|
|
|
|
|
} |
|
|
|
this._canceled = true; |
|
|
|
this._canceled = true; |
|
|
|
if (this._renderTimer !== null) { |
|
|
|
if (this._renderTimer !== null) { |
|
|
|
clearTimeout(this._renderTimer); |
|
|
|
clearTimeout(this._renderTimer); |
|
|
@ -14482,22 +14519,85 @@ var renderTextLayer = function renderTextLayerClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
this._capability.reject('canceled'); |
|
|
|
this._capability.reject('canceled'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
_processItems: function _processItems(items, styleCache) { |
|
|
|
|
|
|
|
for (var i = 0, len = items.length; i < len; i++) { |
|
|
|
|
|
|
|
this._textContentItemsStr.push(items[i].str); |
|
|
|
|
|
|
|
appendText(this, items[i], styleCache); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
_layoutText: function _layoutText(textDiv) { |
|
|
|
|
|
|
|
var textLayerFrag = this._container; |
|
|
|
|
|
|
|
var textDivProperties = this._textDivProperties.get(textDiv); |
|
|
|
|
|
|
|
if (textDivProperties.isWhitespace) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var fontSize = textDiv.style.fontSize; |
|
|
|
|
|
|
|
var fontFamily = textDiv.style.fontFamily; |
|
|
|
|
|
|
|
if (fontSize !== this._layoutTextLastFontSize || fontFamily !== this._layoutTextLastFontFamily) { |
|
|
|
|
|
|
|
this._layoutTextCtx.font = fontSize + ' ' + fontFamily; |
|
|
|
|
|
|
|
this._lastFontSize = fontSize; |
|
|
|
|
|
|
|
this._lastFontFamily = fontFamily; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var width = this._layoutTextCtx.measureText(textDiv.textContent).width; |
|
|
|
|
|
|
|
var transform = ''; |
|
|
|
|
|
|
|
if (textDivProperties.canvasWidth !== 0 && width > 0) { |
|
|
|
|
|
|
|
textDivProperties.scale = textDivProperties.canvasWidth / width; |
|
|
|
|
|
|
|
transform = 'scaleX(' + textDivProperties.scale + ')'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (textDivProperties.angle !== 0) { |
|
|
|
|
|
|
|
transform = 'rotate(' + textDivProperties.angle + 'deg) ' + transform; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (transform !== '') { |
|
|
|
|
|
|
|
textDivProperties.originalTransform = transform; |
|
|
|
|
|
|
|
_dom_utils.CustomStyle.setProp('transform', textDiv, transform); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this._textDivProperties.set(textDiv, textDivProperties); |
|
|
|
|
|
|
|
textLayerFrag.appendChild(textDiv); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_render: function TextLayer_render(timeout) { |
|
|
|
_render: function TextLayer_render(timeout) { |
|
|
|
var _this = this; |
|
|
|
var _this = this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var capability = (0, _util.createPromiseCapability)(); |
|
|
|
|
|
|
|
var styleCache = Object.create(null); |
|
|
|
|
|
|
|
var canvas = document.createElement('canvas'); |
|
|
|
|
|
|
|
this._layoutTextCtx = canvas.getContext('2d', { alpha: false }); |
|
|
|
|
|
|
|
if (this._textContent) { |
|
|
|
var textItems = this._textContent.items; |
|
|
|
var textItems = this._textContent.items; |
|
|
|
var textStyles = this._textContent.styles; |
|
|
|
var textStyles = this._textContent.styles; |
|
|
|
for (var i = 0, len = textItems.length; i < len; i++) { |
|
|
|
this._processItems(textItems, textStyles); |
|
|
|
appendText(this, textItems[i], textStyles); |
|
|
|
capability.resolve(); |
|
|
|
|
|
|
|
} else if (this._textContentStream) { |
|
|
|
|
|
|
|
var pump = function pump() { |
|
|
|
|
|
|
|
_this._reader.read().then(function (_ref2) { |
|
|
|
|
|
|
|
var value = _ref2.value, |
|
|
|
|
|
|
|
done = _ref2.done; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (done) { |
|
|
|
|
|
|
|
capability.resolve(); |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_util.Util.extendObj(styleCache, value.styles); |
|
|
|
|
|
|
|
_this._processItems(value.items, styleCache); |
|
|
|
|
|
|
|
pump(); |
|
|
|
|
|
|
|
}, capability.reject); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
this._reader = this._textContentStream.getReader(); |
|
|
|
|
|
|
|
pump(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
throw new Error('Neither "textContent" nor "textContentStream"' + ' parameters specified.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
capability.promise.then(function () { |
|
|
|
|
|
|
|
styleCache = null; |
|
|
|
if (!timeout) { |
|
|
|
if (!timeout) { |
|
|
|
render(this); |
|
|
|
render(_this); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this._renderTimer = setTimeout(function () { |
|
|
|
_this._renderTimer = setTimeout(function () { |
|
|
|
render(_this); |
|
|
|
render(_this); |
|
|
|
_this._renderTimer = null; |
|
|
|
_this._renderTimer = null; |
|
|
|
}, timeout); |
|
|
|
}, timeout); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, this._capability.reject); |
|
|
|
}, |
|
|
|
}, |
|
|
|
expandTextDivs: function TextLayer_expandTextDivs(expandDivs) { |
|
|
|
expandTextDivs: function TextLayer_expandTextDivs(expandDivs) { |
|
|
|
if (!this._enhanceTextSelection || !this._renderingDone) { |
|
|
|
if (!this._enhanceTextSelection || !this._renderingDone) { |
|
|
@ -14550,7 +14650,15 @@ var renderTextLayer = function renderTextLayerClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
function renderTextLayer(renderParameters) { |
|
|
|
function renderTextLayer(renderParameters) { |
|
|
|
var task = new TextLayerRenderTask(renderParameters.textContent, renderParameters.container, renderParameters.viewport, renderParameters.textDivs, renderParameters.enhanceTextSelection); |
|
|
|
var task = new TextLayerRenderTask({ |
|
|
|
|
|
|
|
textContent: renderParameters.textContent, |
|
|
|
|
|
|
|
textContentStream: renderParameters.textContentStream, |
|
|
|
|
|
|
|
container: renderParameters.container, |
|
|
|
|
|
|
|
viewport: renderParameters.viewport, |
|
|
|
|
|
|
|
textDivs: renderParameters.textDivs, |
|
|
|
|
|
|
|
textContentItemsStr: renderParameters.textContentItemsStr, |
|
|
|
|
|
|
|
enhanceTextSelection: renderParameters.enhanceTextSelection |
|
|
|
|
|
|
|
}); |
|
|
|
task._render(renderParameters.timeout); |
|
|
|
task._render(renderParameters.timeout); |
|
|
|
return task; |
|
|
|
return task; |
|
|
|
} |
|
|
|
} |
|
|
@ -18392,6 +18500,8 @@ Object.defineProperty(exports, "__esModule", { |
|
|
|
}); |
|
|
|
}); |
|
|
|
exports.PartialEvaluator = exports.OperatorList = undefined; |
|
|
|
exports.PartialEvaluator = exports.OperatorList = 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 _util = __w_pdfjs_require__(0); |
|
|
|
|
|
|
|
|
|
|
|
var _cmap = __w_pdfjs_require__(31); |
|
|
|
var _cmap = __w_pdfjs_require__(31); |
|
|
@ -19350,7 +19460,10 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
_ref3$normalizeWhites = _ref3.normalizeWhitespace, |
|
|
|
_ref3$normalizeWhites = _ref3.normalizeWhitespace, |
|
|
|
normalizeWhitespace = _ref3$normalizeWhites === undefined ? false : _ref3$normalizeWhites, |
|
|
|
normalizeWhitespace = _ref3$normalizeWhites === undefined ? false : _ref3$normalizeWhites, |
|
|
|
_ref3$combineTextItem = _ref3.combineTextItems, |
|
|
|
_ref3$combineTextItem = _ref3.combineTextItems, |
|
|
|
combineTextItems = _ref3$combineTextItem === undefined ? false : _ref3$combineTextItem; |
|
|
|
combineTextItems = _ref3$combineTextItem === undefined ? false : _ref3$combineTextItem, |
|
|
|
|
|
|
|
sink = _ref3.sink, |
|
|
|
|
|
|
|
_ref3$seenStyles = _ref3.seenStyles, |
|
|
|
|
|
|
|
seenStyles = _ref3$seenStyles === undefined ? Object.create(null) : _ref3$seenStyles; |
|
|
|
|
|
|
|
|
|
|
|
resources = resources || _primitives.Dict.empty; |
|
|
|
resources = resources || _primitives.Dict.empty; |
|
|
|
stateManager = stateManager || new StateManager(new TextState()); |
|
|
|
stateManager = stateManager || new StateManager(new TextState()); |
|
|
@ -19382,7 +19495,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
var xref = this.xref; |
|
|
|
var xref = this.xref; |
|
|
|
var xobjs = null; |
|
|
|
var xobjs = null; |
|
|
|
var xobjsCache = Object.create(null); |
|
|
|
var skipEmptyXObjs = Object.create(null); |
|
|
|
var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager); |
|
|
|
var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager); |
|
|
|
var textState; |
|
|
|
var textState; |
|
|
|
function ensureTextContentItem() { |
|
|
|
function ensureTextContentItem() { |
|
|
@ -19390,7 +19503,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
return textContentItem; |
|
|
|
return textContentItem; |
|
|
|
} |
|
|
|
} |
|
|
|
var font = textState.font; |
|
|
|
var font = textState.font; |
|
|
|
if (!(font.loadedName in textContent.styles)) { |
|
|
|
if (!(font.loadedName in seenStyles)) { |
|
|
|
|
|
|
|
seenStyles[font.loadedName] = true; |
|
|
|
textContent.styles[font.loadedName] = { |
|
|
|
textContent.styles[font.loadedName] = { |
|
|
|
fontFamily: font.fallbackName, |
|
|
|
fontFamily: font.fallbackName, |
|
|
|
ascent: font.ascent, |
|
|
|
ascent: font.ascent, |
|
|
@ -19545,10 +19659,19 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
textContentItem.initialized = false; |
|
|
|
textContentItem.initialized = false; |
|
|
|
textContentItem.str.length = 0; |
|
|
|
textContentItem.str.length = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function enqueueChunk() { |
|
|
|
|
|
|
|
var length = textContent.items.length; |
|
|
|
|
|
|
|
if (length > 0) { |
|
|
|
|
|
|
|
sink.enqueue(textContent, length); |
|
|
|
|
|
|
|
textContent.items = []; |
|
|
|
|
|
|
|
textContent.styles = Object.create(null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
var timeSlotManager = new TimeSlotManager(); |
|
|
|
var timeSlotManager = new TimeSlotManager(); |
|
|
|
return new Promise(function promiseBody(resolve, reject) { |
|
|
|
return new Promise(function promiseBody(resolve, reject) { |
|
|
|
var next = function next(promise) { |
|
|
|
var next = function next(promise) { |
|
|
|
promise.then(function () { |
|
|
|
enqueueChunk(); |
|
|
|
|
|
|
|
Promise.all([promise, sink.ready]).then(function () { |
|
|
|
try { |
|
|
|
try { |
|
|
|
promiseBody(resolve, reject); |
|
|
|
promiseBody(resolve, reject); |
|
|
|
} catch (ex) { |
|
|
|
} catch (ex) { |
|
|
@ -19571,10 +19694,29 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
var fn = operation.fn; |
|
|
|
var fn = operation.fn; |
|
|
|
args = operation.args; |
|
|
|
args = operation.args; |
|
|
|
var advance, diff; |
|
|
|
var advance, diff; |
|
|
|
|
|
|
|
var fontNameArg, fontSizeArg; |
|
|
|
|
|
|
|
var isSameTextLine; |
|
|
|
|
|
|
|
var items; |
|
|
|
|
|
|
|
var offset; |
|
|
|
|
|
|
|
var j, jj; |
|
|
|
|
|
|
|
var breakTextRun; |
|
|
|
|
|
|
|
var name; |
|
|
|
|
|
|
|
var xobj; |
|
|
|
|
|
|
|
var type; |
|
|
|
|
|
|
|
var currentState; |
|
|
|
|
|
|
|
var xObjStateManager; |
|
|
|
|
|
|
|
var matrix; |
|
|
|
|
|
|
|
var dictName; |
|
|
|
|
|
|
|
var extGState; |
|
|
|
|
|
|
|
var gState; |
|
|
|
|
|
|
|
var gStateFont; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _ret2 = function () { |
|
|
|
switch (fn | 0) { |
|
|
|
switch (fn | 0) { |
|
|
|
case _util.OPS.setFont: |
|
|
|
case _util.OPS.setFont: |
|
|
|
var fontNameArg = args[0].name, |
|
|
|
fontNameArg = args[0].name; |
|
|
|
fontSizeArg = args[1]; |
|
|
|
fontSizeArg = args[1]; |
|
|
|
|
|
|
|
|
|
|
|
if (textState.font && fontNameArg === textState.fontName && fontSizeArg === textState.fontSize) { |
|
|
|
if (textState.font && fontNameArg === textState.fontName && fontSizeArg === textState.fontSize) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -19582,7 +19724,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
textState.fontName = fontNameArg; |
|
|
|
textState.fontName = fontNameArg; |
|
|
|
textState.fontSize = fontSizeArg; |
|
|
|
textState.fontSize = fontSizeArg; |
|
|
|
next(handleSetFont(fontNameArg, null)); |
|
|
|
next(handleSetFont(fontNameArg, null)); |
|
|
|
return; |
|
|
|
return { |
|
|
|
|
|
|
|
v: void 0 |
|
|
|
|
|
|
|
}; |
|
|
|
case _util.OPS.setTextRise: |
|
|
|
case _util.OPS.setTextRise: |
|
|
|
flushTextContentItem(); |
|
|
|
flushTextContentItem(); |
|
|
|
textState.textRise = args[0]; |
|
|
|
textState.textRise = args[0]; |
|
|
@ -19596,7 +19740,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
textState.leading = args[0]; |
|
|
|
textState.leading = args[0]; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case _util.OPS.moveText: |
|
|
|
case _util.OPS.moveText: |
|
|
|
var isSameTextLine = !textState.font ? false : (textState.font.vertical ? args[0] : args[1]) === 0; |
|
|
|
isSameTextLine = !textState.font ? false : (textState.font.vertical ? args[0] : args[1]) === 0; |
|
|
|
|
|
|
|
|
|
|
|
advance = args[0] - args[1]; |
|
|
|
advance = args[0] - args[1]; |
|
|
|
if (combineTextItems && isSameTextLine && textContentItem.initialized && advance > 0 && advance <= textContentItem.fakeMultiSpaceMax) { |
|
|
|
if (combineTextItems && isSameTextLine && textContentItem.initialized && advance > 0 && advance <= textContentItem.fakeMultiSpaceMax) { |
|
|
|
textState.translateTextLineMatrix(args[0], args[1]); |
|
|
|
textState.translateTextLineMatrix(args[0], args[1]); |
|
|
@ -19646,15 +19791,16 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
textState.textLineMatrix = _util.IDENTITY_MATRIX.slice(); |
|
|
|
textState.textLineMatrix = _util.IDENTITY_MATRIX.slice(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case _util.OPS.showSpacedText: |
|
|
|
case _util.OPS.showSpacedText: |
|
|
|
var items = args[0]; |
|
|
|
items = args[0]; |
|
|
|
var offset; |
|
|
|
|
|
|
|
for (var j = 0, jj = items.length; j < jj; j++) { |
|
|
|
for (j = 0, jj = items.length; j < jj; j++) { |
|
|
|
if (typeof items[j] === 'string') { |
|
|
|
if (typeof items[j] === 'string') { |
|
|
|
buildTextContentItem(items[j]); |
|
|
|
buildTextContentItem(items[j]); |
|
|
|
} else if ((0, _util.isNum)(items[j])) { |
|
|
|
} else if ((0, _util.isNum)(items[j])) { |
|
|
|
ensureTextContentItem(); |
|
|
|
ensureTextContentItem(); |
|
|
|
advance = items[j] * textState.fontSize / 1000; |
|
|
|
advance = items[j] * textState.fontSize / 1000; |
|
|
|
var breakTextRun = false; |
|
|
|
breakTextRun = false; |
|
|
|
|
|
|
|
|
|
|
|
if (textState.font.vertical) { |
|
|
|
if (textState.font.vertical) { |
|
|
|
offset = advance; |
|
|
|
offset = advance; |
|
|
|
textState.translateTextMatrix(0, offset); |
|
|
|
textState.translateTextMatrix(0, offset); |
|
|
@ -19702,78 +19848,109 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
if (!xobjs) { |
|
|
|
if (!xobjs) { |
|
|
|
xobjs = resources.get('XObject') || _primitives.Dict.empty; |
|
|
|
xobjs = resources.get('XObject') || _primitives.Dict.empty; |
|
|
|
} |
|
|
|
} |
|
|
|
var name = args[0].name; |
|
|
|
name = args[0].name; |
|
|
|
if (xobjsCache.key === name) { |
|
|
|
|
|
|
|
if (xobjsCache.texts) { |
|
|
|
if (name in skipEmptyXObjs) { |
|
|
|
_util.Util.appendToArray(textContent.items, xobjsCache.texts.items); |
|
|
|
|
|
|
|
_util.Util.extendObj(textContent.styles, xobjsCache.texts.styles); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
var xobj = xobjs.get(name); |
|
|
|
xobj = xobjs.get(name); |
|
|
|
|
|
|
|
|
|
|
|
if (!xobj) { |
|
|
|
if (!xobj) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
(0, _util.assert)((0, _primitives.isStream)(xobj), 'XObject should be a stream'); |
|
|
|
(0, _util.assert)((0, _primitives.isStream)(xobj), 'XObject should be a stream'); |
|
|
|
var type = xobj.dict.get('Subtype'); |
|
|
|
type = xobj.dict.get('Subtype'); |
|
|
|
|
|
|
|
|
|
|
|
(0, _util.assert)((0, _primitives.isName)(type), 'XObject should have a Name subtype'); |
|
|
|
(0, _util.assert)((0, _primitives.isName)(type), 'XObject should have a Name subtype'); |
|
|
|
if (type.name !== 'Form') { |
|
|
|
if (type.name !== 'Form') { |
|
|
|
xobjsCache.key = name; |
|
|
|
skipEmptyXObjs[name] = true; |
|
|
|
xobjsCache.texts = null; |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
var currentState = stateManager.state.clone(); |
|
|
|
currentState = stateManager.state.clone(); |
|
|
|
var xObjStateManager = new StateManager(currentState); |
|
|
|
xObjStateManager = new StateManager(currentState); |
|
|
|
var matrix = xobj.dict.getArray('Matrix'); |
|
|
|
matrix = xobj.dict.getArray('Matrix'); |
|
|
|
|
|
|
|
|
|
|
|
if ((0, _util.isArray)(matrix) && matrix.length === 6) { |
|
|
|
if ((0, _util.isArray)(matrix) && matrix.length === 6) { |
|
|
|
xObjStateManager.transform(matrix); |
|
|
|
xObjStateManager.transform(matrix); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
enqueueChunk(); |
|
|
|
|
|
|
|
var sinkWrapper = { |
|
|
|
|
|
|
|
enqueueInvoked: false, |
|
|
|
|
|
|
|
enqueue: function enqueue(chunk, size) { |
|
|
|
|
|
|
|
this.enqueueInvoked = true; |
|
|
|
|
|
|
|
sink.enqueue(chunk, size); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get desiredSize() { |
|
|
|
|
|
|
|
return sink.desiredSize; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
get ready() { |
|
|
|
|
|
|
|
return sink.ready; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
next(self.getTextContent({ |
|
|
|
next(self.getTextContent({ |
|
|
|
stream: xobj, |
|
|
|
stream: xobj, |
|
|
|
task: task, |
|
|
|
task: task, |
|
|
|
resources: xobj.dict.get('Resources') || resources, |
|
|
|
resources: xobj.dict.get('Resources') || resources, |
|
|
|
stateManager: xObjStateManager, |
|
|
|
stateManager: xObjStateManager, |
|
|
|
normalizeWhitespace: normalizeWhitespace, |
|
|
|
normalizeWhitespace: normalizeWhitespace, |
|
|
|
combineTextItems: combineTextItems |
|
|
|
combineTextItems: combineTextItems, |
|
|
|
}).then(function (formTextContent) { |
|
|
|
sink: sinkWrapper, |
|
|
|
_util.Util.appendToArray(textContent.items, formTextContent.items); |
|
|
|
seenStyles: seenStyles |
|
|
|
_util.Util.extendObj(textContent.styles, formTextContent.styles); |
|
|
|
}).then(function () { |
|
|
|
xobjsCache.key = name; |
|
|
|
if (!sinkWrapper.enqueueInvoked) { |
|
|
|
xobjsCache.texts = formTextContent; |
|
|
|
skipEmptyXObjs[name] = true; |
|
|
|
|
|
|
|
} |
|
|
|
})); |
|
|
|
})); |
|
|
|
return; |
|
|
|
return { |
|
|
|
|
|
|
|
v: void 0 |
|
|
|
|
|
|
|
}; |
|
|
|
case _util.OPS.setGState: |
|
|
|
case _util.OPS.setGState: |
|
|
|
flushTextContentItem(); |
|
|
|
flushTextContentItem(); |
|
|
|
var dictName = args[0]; |
|
|
|
dictName = args[0]; |
|
|
|
var extGState = resources.get('ExtGState'); |
|
|
|
extGState = resources.get('ExtGState'); |
|
|
|
|
|
|
|
|
|
|
|
if (!(0, _primitives.isDict)(extGState) || !(0, _primitives.isName)(dictName)) { |
|
|
|
if (!(0, _primitives.isDict)(extGState) || !(0, _primitives.isName)(dictName)) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
var gState = extGState.get(dictName.name); |
|
|
|
gState = extGState.get(dictName.name); |
|
|
|
|
|
|
|
|
|
|
|
if (!(0, _primitives.isDict)(gState)) { |
|
|
|
if (!(0, _primitives.isDict)(gState)) { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
var gStateFont = gState.get('Font'); |
|
|
|
gStateFont = gState.get('Font'); |
|
|
|
|
|
|
|
|
|
|
|
if (gStateFont) { |
|
|
|
if (gStateFont) { |
|
|
|
textState.fontName = null; |
|
|
|
textState.fontName = null; |
|
|
|
textState.fontSize = gStateFont[1]; |
|
|
|
textState.fontSize = gStateFont[1]; |
|
|
|
next(handleSetFont(null, gStateFont[0])); |
|
|
|
next(handleSetFont(null, gStateFont[0])); |
|
|
|
return; |
|
|
|
return { |
|
|
|
|
|
|
|
v: void 0 |
|
|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((typeof _ret2 === 'undefined' ? 'undefined' : _typeof(_ret2)) === "object") return _ret2.v; |
|
|
|
|
|
|
|
if (textContent.items.length >= sink.desiredSize) { |
|
|
|
|
|
|
|
stop = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (stop) { |
|
|
|
if (stop) { |
|
|
|
next(deferred); |
|
|
|
next(deferred); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
flushTextContentItem(); |
|
|
|
flushTextContentItem(); |
|
|
|
resolve(textContent); |
|
|
|
enqueueChunk(); |
|
|
|
|
|
|
|
resolve(); |
|
|
|
}).catch(function (reason) { |
|
|
|
}).catch(function (reason) { |
|
|
|
if (_this9.options.ignoreErrors) { |
|
|
|
if (_this9.options.ignoreErrors) { |
|
|
|
(0, _util.warn)('getTextContent - ignoring errors during task: ' + task.name); |
|
|
|
(0, _util.warn)('getTextContent - ignoring errors during task: ' + task.name); |
|
|
|
flushTextContentItem(); |
|
|
|
flushTextContentItem(); |
|
|
|
return textContent; |
|
|
|
enqueueChunk(); |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
throw reason; |
|
|
|
throw reason; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -27884,27 +28061,31 @@ var WorkerMessageHandler = { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, this); |
|
|
|
}, this); |
|
|
|
handler.on('GetTextContent', function wphExtractText(data) { |
|
|
|
handler.on('GetTextContent', function wphExtractText(data, sink) { |
|
|
|
var pageIndex = data.pageIndex; |
|
|
|
var pageIndex = data.pageIndex; |
|
|
|
return pdfManager.getPage(pageIndex).then(function (page) { |
|
|
|
sink.onPull = function (desiredSize) {}; |
|
|
|
|
|
|
|
sink.onCancel = function (reason) {}; |
|
|
|
|
|
|
|
pdfManager.getPage(pageIndex).then(function (page) { |
|
|
|
var task = new WorkerTask('GetTextContent: page ' + pageIndex); |
|
|
|
var task = new WorkerTask('GetTextContent: page ' + pageIndex); |
|
|
|
startWorkerTask(task); |
|
|
|
startWorkerTask(task); |
|
|
|
var pageNum = pageIndex + 1; |
|
|
|
var pageNum = pageIndex + 1; |
|
|
|
var start = Date.now(); |
|
|
|
var start = Date.now(); |
|
|
|
return page.extractTextContent({ |
|
|
|
page.extractTextContent({ |
|
|
|
handler: handler, |
|
|
|
handler: handler, |
|
|
|
task: task, |
|
|
|
task: task, |
|
|
|
|
|
|
|
sink: sink, |
|
|
|
normalizeWhitespace: data.normalizeWhitespace, |
|
|
|
normalizeWhitespace: data.normalizeWhitespace, |
|
|
|
combineTextItems: data.combineTextItems |
|
|
|
combineTextItems: data.combineTextItems |
|
|
|
}).then(function (textContent) { |
|
|
|
}).then(function () { |
|
|
|
finishWorkerTask(task); |
|
|
|
finishWorkerTask(task); |
|
|
|
(0, _util.info)('text indexing: page=' + pageNum + ' - time=' + (Date.now() - start) + 'ms'); |
|
|
|
(0, _util.info)('text indexing: page=' + pageNum + ' - time=' + (Date.now() - start) + 'ms'); |
|
|
|
return textContent; |
|
|
|
sink.close(); |
|
|
|
}, function (reason) { |
|
|
|
}, function (reason) { |
|
|
|
finishWorkerTask(task); |
|
|
|
finishWorkerTask(task); |
|
|
|
if (task.terminated) { |
|
|
|
if (task.terminated) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
sink.error(reason); |
|
|
|
throw reason; |
|
|
|
throw reason; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -28436,8 +28617,8 @@ if (!_util.globalScope.PDFJS) { |
|
|
|
} |
|
|
|
} |
|
|
|
var PDFJS = _util.globalScope.PDFJS; |
|
|
|
var PDFJS = _util.globalScope.PDFJS; |
|
|
|
{ |
|
|
|
{ |
|
|
|
PDFJS.version = '1.8.482'; |
|
|
|
PDFJS.version = '1.8.484'; |
|
|
|
PDFJS.build = 'd1567a94'; |
|
|
|
PDFJS.build = 'e2ca894f'; |
|
|
|
} |
|
|
|
} |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
@ -33423,6 +33604,7 @@ var Page = function PageClosure() { |
|
|
|
var handler = _ref6.handler, |
|
|
|
var handler = _ref6.handler, |
|
|
|
task = _ref6.task, |
|
|
|
task = _ref6.task, |
|
|
|
normalizeWhitespace = _ref6.normalizeWhitespace, |
|
|
|
normalizeWhitespace = _ref6.normalizeWhitespace, |
|
|
|
|
|
|
|
sink = _ref6.sink, |
|
|
|
combineTextItems = _ref6.combineTextItems; |
|
|
|
combineTextItems = _ref6.combineTextItems; |
|
|
|
|
|
|
|
|
|
|
|
var contentStreamPromise = this.pdfManager.ensure(this, 'getContentStream'); |
|
|
|
var contentStreamPromise = this.pdfManager.ensure(this, 'getContentStream'); |
|
|
@ -33447,7 +33629,8 @@ var Page = function PageClosure() { |
|
|
|
task: task, |
|
|
|
task: task, |
|
|
|
resources: _this3.resources, |
|
|
|
resources: _this3.resources, |
|
|
|
normalizeWhitespace: normalizeWhitespace, |
|
|
|
normalizeWhitespace: normalizeWhitespace, |
|
|
|
combineTextItems: combineTextItems |
|
|
|
combineTextItems: combineTextItems, |
|
|
|
|
|
|
|
sink: sink |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -47054,8 +47237,8 @@ exports.TilingPattern = TilingPattern; |
|
|
|
"use strict"; |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '1.8.482'; |
|
|
|
var pdfjsVersion = '1.8.484'; |
|
|
|
var pdfjsBuild = 'd1567a94'; |
|
|
|
var pdfjsBuild = 'e2ca894f'; |
|
|
|
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); |
|
|
|