|
|
@ -11607,7 +11607,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.169'; |
|
|
|
var apiVersion = '2.0.172'; |
|
|
|
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'); |
|
|
@ -12887,8 +12887,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var version, build; |
|
|
|
var version, build; |
|
|
|
{ |
|
|
|
{ |
|
|
|
exports.version = version = '2.0.169'; |
|
|
|
exports.version = version = '2.0.172'; |
|
|
|
exports.build = build = 'fbf456f5'; |
|
|
|
exports.build = build = '3f3ade55'; |
|
|
|
} |
|
|
|
} |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.getDocument = getDocument; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
|
exports.LoopbackPort = LoopbackPort; |
|
|
@ -26543,8 +26543,8 @@ exports.SVGGraphics = SVGGraphics; |
|
|
|
"use strict"; |
|
|
|
"use strict"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var pdfjsVersion = '2.0.169'; |
|
|
|
var pdfjsVersion = '2.0.172'; |
|
|
|
var pdfjsBuild = 'fbf456f5'; |
|
|
|
var pdfjsBuild = '3f3ade55'; |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(129); |
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(129); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(65); |
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(65); |
|
|
@ -31873,8 +31873,8 @@ if (!_global_scope2.default.PDFJS) { |
|
|
|
} |
|
|
|
} |
|
|
|
var PDFJS = _global_scope2.default.PDFJS; |
|
|
|
var PDFJS = _global_scope2.default.PDFJS; |
|
|
|
{ |
|
|
|
{ |
|
|
|
PDFJS.version = '2.0.169'; |
|
|
|
PDFJS.version = '2.0.172'; |
|
|
|
PDFJS.build = 'fbf456f5'; |
|
|
|
PDFJS.build = '3f3ade55'; |
|
|
|
} |
|
|
|
} |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
PDFJS.pdfBug = false; |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
|
if (PDFJS.verbosity !== undefined) { |
|
|
@ -35234,7 +35234,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.169'; |
|
|
|
var workerVersion = '2.0.172'; |
|
|
|
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 + '".')); |
|
|
|
} |
|
|
|
} |
|
|
@ -41809,14 +41809,11 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
return properties; |
|
|
|
return properties; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
buildToUnicode: function PartialEvaluator_buildToUnicode(properties) { |
|
|
|
_buildSimpleFontToUnicode: function _buildSimpleFontToUnicode(properties) { |
|
|
|
properties.hasIncludedToUnicodeMap = !!properties.toUnicode && properties.toUnicode.length > 0; |
|
|
|
(0, _util.assert)(!properties.composite, 'Must be a simple font.'); |
|
|
|
if (properties.hasIncludedToUnicodeMap) { |
|
|
|
var toUnicode = [], |
|
|
|
return Promise.resolve(properties.toUnicode); |
|
|
|
charcode = void 0, |
|
|
|
} |
|
|
|
glyphName = void 0; |
|
|
|
var toUnicode, charcode, glyphName; |
|
|
|
|
|
|
|
if (!properties.composite) { |
|
|
|
|
|
|
|
toUnicode = []; |
|
|
|
|
|
|
|
var encoding = properties.defaultEncoding.slice(); |
|
|
|
var encoding = properties.defaultEncoding.slice(); |
|
|
|
var baseEncodingName = properties.baseEncodingName; |
|
|
|
var baseEncodingName = properties.baseEncodingName; |
|
|
|
var differences = properties.differences; |
|
|
|
var differences = properties.differences; |
|
|
@ -41871,7 +41868,18 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
toUnicode[charcode] = String.fromCharCode(glyphsUnicodeMap[glyphName]); |
|
|
|
toUnicode[charcode] = String.fromCharCode(glyphsUnicodeMap[glyphName]); |
|
|
|
} |
|
|
|
} |
|
|
|
return Promise.resolve(new _fonts.ToUnicodeMap(toUnicode)); |
|
|
|
return new _fonts.ToUnicodeMap(toUnicode); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
buildToUnicode: function buildToUnicode(properties) { |
|
|
|
|
|
|
|
properties.hasIncludedToUnicodeMap = !!properties.toUnicode && properties.toUnicode.length > 0; |
|
|
|
|
|
|
|
if (properties.hasIncludedToUnicodeMap) { |
|
|
|
|
|
|
|
if (!properties.composite && properties.hasEncoding) { |
|
|
|
|
|
|
|
properties.fallbackToUnicode = this._buildSimpleFontToUnicode(properties); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return Promise.resolve(properties.toUnicode); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!properties.composite) { |
|
|
|
|
|
|
|
return Promise.resolve(this._buildSimpleFontToUnicode(properties)); |
|
|
|
} |
|
|
|
} |
|
|
|
if (properties.composite && (properties.cMap.builtInCMap && !(properties.cMap instanceof _cmap.IdentityCMap) || properties.cidSystemInfo.registry === 'Adobe' && (properties.cidSystemInfo.ordering === 'GB1' || properties.cidSystemInfo.ordering === 'CNS1' || properties.cidSystemInfo.ordering === 'Japan1' || properties.cidSystemInfo.ordering === 'Korea1'))) { |
|
|
|
if (properties.composite && (properties.cMap.builtInCMap && !(properties.cMap instanceof _cmap.IdentityCMap) || properties.cidSystemInfo.registry === 'Adobe' && (properties.cidSystemInfo.ordering === 'GB1' || properties.cidSystemInfo.ordering === 'CNS1' || properties.cidSystemInfo.ordering === 'Japan1' || properties.cidSystemInfo.ordering === 'Korea1'))) { |
|
|
|
var registry = properties.cidSystemInfo.registry; |
|
|
|
var registry = properties.cidSystemInfo.registry; |
|
|
@ -41883,7 +41891,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
useCMap: null |
|
|
|
useCMap: null |
|
|
|
}).then(function (ucs2CMap) { |
|
|
|
}).then(function (ucs2CMap) { |
|
|
|
var cMap = properties.cMap; |
|
|
|
var cMap = properties.cMap; |
|
|
|
toUnicode = []; |
|
|
|
var toUnicode = []; |
|
|
|
cMap.forEach(function (charcode, cid) { |
|
|
|
cMap.forEach(function (charcode, cid) { |
|
|
|
if (cid > 0xffff) { |
|
|
|
if (cid > 0xffff) { |
|
|
|
throw new _util.FormatError('Max size of CID is 65,535'); |
|
|
|
throw new _util.FormatError('Max size of CID is 65,535'); |
|
|
@ -41898,6 +41906,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
return Promise.resolve(new _fonts.IdentityToUnicodeMap(properties.firstChar, properties.lastChar)); |
|
|
|
return Promise.resolve(new _fonts.IdentityToUnicodeMap(properties.firstChar, properties.lastChar)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) { |
|
|
|
readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) { |
|
|
|
var cmapObj = toUnicode; |
|
|
|
var cmapObj = toUnicode; |
|
|
|
if ((0, _primitives.isName)(cmapObj)) { |
|
|
|
if ((0, _primitives.isName)(cmapObj)) { |
|
|
@ -43806,7 +43815,9 @@ var Glyph = function GlyphClosure() { |
|
|
|
return Glyph; |
|
|
|
return Glyph; |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var ToUnicodeMap = function ToUnicodeMapClosure() { |
|
|
|
var ToUnicodeMap = function ToUnicodeMapClosure() { |
|
|
|
function ToUnicodeMap(cmap) { |
|
|
|
function ToUnicodeMap() { |
|
|
|
|
|
|
|
var cmap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; |
|
|
|
|
|
|
|
|
|
|
|
this._map = cmap; |
|
|
|
this._map = cmap; |
|
|
|
} |
|
|
|
} |
|
|
|
ToUnicodeMap.prototype = { |
|
|
|
ToUnicodeMap.prototype = { |
|
|
@ -44012,6 +44023,7 @@ var Font = function FontClosure() { |
|
|
|
this.bbox = properties.bbox; |
|
|
|
this.bbox = properties.bbox; |
|
|
|
this.defaultEncoding = properties.defaultEncoding; |
|
|
|
this.defaultEncoding = properties.defaultEncoding; |
|
|
|
this.toUnicode = properties.toUnicode; |
|
|
|
this.toUnicode = properties.toUnicode; |
|
|
|
|
|
|
|
this.fallbackToUnicode = properties.fallbackToUnicode || new ToUnicodeMap(); |
|
|
|
this.toFontChar = []; |
|
|
|
this.toFontChar = []; |
|
|
|
if (properties.type === 'Type3') { |
|
|
|
if (properties.type === 'Type3') { |
|
|
|
for (charCode = 0; charCode < 256; charCode++) { |
|
|
|
for (charCode = 0; charCode < 256; charCode++) { |
|
|
@ -45677,7 +45689,7 @@ var Font = function FontClosure() { |
|
|
|
width = this.widths[widthCode]; |
|
|
|
width = this.widths[widthCode]; |
|
|
|
width = (0, _util.isNum)(width) ? width : this.defaultWidth; |
|
|
|
width = (0, _util.isNum)(width) ? width : this.defaultWidth; |
|
|
|
var vmetric = this.vmetrics && this.vmetrics[widthCode]; |
|
|
|
var vmetric = this.vmetrics && this.vmetrics[widthCode]; |
|
|
|
var unicode = this.toUnicode.get(charcode) || charcode; |
|
|
|
var unicode = this.toUnicode.get(charcode) || this.fallbackToUnicode.get(charcode) || charcode; |
|
|
|
if (typeof unicode === 'number') { |
|
|
|
if (typeof unicode === 'number') { |
|
|
|
unicode = String.fromCharCode(unicode); |
|
|
|
unicode = String.fromCharCode(unicode); |
|
|
|
} |
|
|
|
} |
|
|
|