|
|
@ -23,8 +23,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}(this, function (exports) { |
|
|
|
}(this, function (exports) { |
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
var pdfjsVersion = '1.6.380'; |
|
|
|
var pdfjsVersion = '1.6.396'; |
|
|
|
var pdfjsBuild = '00a006e'; |
|
|
|
var pdfjsBuild = '7d8fa13'; |
|
|
|
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; |
|
|
|
var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; |
|
|
|
var pdfjsLibs = {}; |
|
|
|
var pdfjsLibs = {}; |
|
|
|
(function pdfjsWrapper() { |
|
|
|
(function pdfjsWrapper() { |
|
|
@ -36292,18 +36292,18 @@ |
|
|
|
}(); |
|
|
|
}(); |
|
|
|
var CipherTransform = function CipherTransformClosure() { |
|
|
|
var CipherTransform = function CipherTransformClosure() { |
|
|
|
function CipherTransform(stringCipherConstructor, streamCipherConstructor) { |
|
|
|
function CipherTransform(stringCipherConstructor, streamCipherConstructor) { |
|
|
|
this.stringCipherConstructor = stringCipherConstructor; |
|
|
|
this.StringCipherConstructor = stringCipherConstructor; |
|
|
|
this.streamCipherConstructor = streamCipherConstructor; |
|
|
|
this.StreamCipherConstructor = streamCipherConstructor; |
|
|
|
} |
|
|
|
} |
|
|
|
CipherTransform.prototype = { |
|
|
|
CipherTransform.prototype = { |
|
|
|
createStream: function CipherTransform_createStream(stream, length) { |
|
|
|
createStream: function CipherTransform_createStream(stream, length) { |
|
|
|
var cipher = new this.streamCipherConstructor(); |
|
|
|
var cipher = new this.StreamCipherConstructor(); |
|
|
|
return new DecryptStream(stream, length, function cipherTransformDecryptStream(data, finalize) { |
|
|
|
return new DecryptStream(stream, length, function cipherTransformDecryptStream(data, finalize) { |
|
|
|
return cipher.decryptBlock(data, finalize); |
|
|
|
return cipher.decryptBlock(data, finalize); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
decryptString: function CipherTransform_decryptString(s) { |
|
|
|
decryptString: function CipherTransform_decryptString(s) { |
|
|
|
var cipher = new this.stringCipherConstructor(); |
|
|
|
var cipher = new this.StringCipherConstructor(); |
|
|
|
var data = stringToBytes(s); |
|
|
|
var data = stringToBytes(s); |
|
|
|
data = cipher.decryptBlock(data, true); |
|
|
|
data = cipher.decryptBlock(data, true); |
|
|
|
return bytesToString(data); |
|
|
|
return bytesToString(data); |
|
|
@ -36588,17 +36588,17 @@ |
|
|
|
return new NullCipher(); |
|
|
|
return new NullCipher(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
if ('V2' === cfm.name) { |
|
|
|
if (cfm.name === 'V2') { |
|
|
|
return function cipherTransformFactoryBuildCipherConstructorV2() { |
|
|
|
return function cipherTransformFactoryBuildCipherConstructorV2() { |
|
|
|
return new ARCFourCipher(buildObjectKey(num, gen, key, false)); |
|
|
|
return new ARCFourCipher(buildObjectKey(num, gen, key, false)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
if ('AESV2' === cfm.name) { |
|
|
|
if (cfm.name === 'AESV2') { |
|
|
|
return function cipherTransformFactoryBuildCipherConstructorAESV2() { |
|
|
|
return function cipherTransformFactoryBuildCipherConstructorAESV2() { |
|
|
|
return new AES128Cipher(buildObjectKey(num, gen, key, true)); |
|
|
|
return new AES128Cipher(buildObjectKey(num, gen, key, true)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
if ('AESV3' === cfm.name) { |
|
|
|
if (cfm.name === 'AESV3') { |
|
|
|
return function cipherTransformFactoryBuildCipherConstructorAESV3() { |
|
|
|
return function cipherTransformFactoryBuildCipherConstructorAESV3() { |
|
|
|
return new AES256Cipher(key); |
|
|
|
return new AES256Cipher(key); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -43003,6 +43003,7 @@ |
|
|
|
function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) { |
|
|
|
function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) { |
|
|
|
var charCodeToGlyphId = Object.create(null); |
|
|
|
var charCodeToGlyphId = Object.create(null); |
|
|
|
var glyphId, charCode, baseEncoding; |
|
|
|
var glyphId, charCode, baseEncoding; |
|
|
|
|
|
|
|
var isSymbolicFont = !!(properties.flags & FontFlags.Symbolic); |
|
|
|
if (properties.baseEncodingName) { |
|
|
|
if (properties.baseEncodingName) { |
|
|
|
baseEncoding = getEncoding(properties.baseEncodingName); |
|
|
|
baseEncoding = getEncoding(properties.baseEncodingName); |
|
|
|
for (charCode = 0; charCode < baseEncoding.length; charCode++) { |
|
|
|
for (charCode = 0; charCode < baseEncoding.length; charCode++) { |
|
|
@ -43013,7 +43014,7 @@ |
|
|
|
charCodeToGlyphId[charCode] = 0; |
|
|
|
charCodeToGlyphId[charCode] = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (!!(properties.flags & FontFlags.Symbolic)) { |
|
|
|
} else if (isSymbolicFont) { |
|
|
|
for (charCode in builtInEncoding) { |
|
|
|
for (charCode in builtInEncoding) { |
|
|
|
charCodeToGlyphId[charCode] = builtInEncoding[charCode]; |
|
|
|
charCodeToGlyphId[charCode] = builtInEncoding[charCode]; |
|
|
|
} |
|
|
|
} |
|
|
@ -45066,11 +45067,11 @@ |
|
|
|
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) { |
|
|
|
paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) { |
|
|
|
this.save(); |
|
|
|
this.save(); |
|
|
|
this.baseTransformStack.push(this.baseTransform); |
|
|
|
this.baseTransformStack.push(this.baseTransform); |
|
|
|
if (isArray(matrix) && 6 === matrix.length) { |
|
|
|
if (isArray(matrix) && matrix.length === 6) { |
|
|
|
this.transform.apply(this, matrix); |
|
|
|
this.transform.apply(this, matrix); |
|
|
|
} |
|
|
|
} |
|
|
|
this.baseTransform = this.ctx.mozCurrentTransform; |
|
|
|
this.baseTransform = this.ctx.mozCurrentTransform; |
|
|
|
if (isArray(bbox) && 4 === bbox.length) { |
|
|
|
if (isArray(bbox) && bbox.length === 4) { |
|
|
|
var width = bbox[2] - bbox[0]; |
|
|
|
var width = bbox[2] - bbox[0]; |
|
|
|
var height = bbox[3] - bbox[1]; |
|
|
|
var height = bbox[3] - bbox[1]; |
|
|
|
this.ctx.rect(bbox[0], bbox[1], width, height); |
|
|
|
this.ctx.rect(bbox[0], bbox[1], width, height); |
|
|
@ -45198,7 +45199,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
beginAnnotation: function CanvasGraphics_beginAnnotation(rect, transform, matrix) { |
|
|
|
beginAnnotation: function CanvasGraphics_beginAnnotation(rect, transform, matrix) { |
|
|
|
this.save(); |
|
|
|
this.save(); |
|
|
|
if (isArray(rect) && 4 === rect.length) { |
|
|
|
if (isArray(rect) && rect.length === 4) { |
|
|
|
var width = rect[2] - rect[0]; |
|
|
|
var width = rect[2] - rect[0]; |
|
|
|
var height = rect[3] - rect[1]; |
|
|
|
var height = rect[3] - rect[1]; |
|
|
|
this.ctx.rect(rect[0], rect[1], width, height); |
|
|
|
this.ctx.rect(rect[0], rect[1], width, height); |
|
|
|