|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.1.149'; |
|
|
|
PDFJS.version = '1.1.151'; |
|
|
|
PDFJS.build = '3f3fb1e'; |
|
|
|
PDFJS.build = '07af86c'; |
|
|
|
|
|
|
|
|
|
|
|
(function pdfjsWrapper() { |
|
|
|
(function pdfjsWrapper() { |
|
|
|
// Use strict in our context only - users might not want it
|
|
|
|
// Use strict in our context only - users might not want it
|
|
|
@ -973,6 +973,10 @@ function stringToUTF8String(str) { |
|
|
|
return decodeURIComponent(escape(str)); |
|
|
|
return decodeURIComponent(escape(str)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function utf8StringToString(str) { |
|
|
|
|
|
|
|
return unescape(encodeURIComponent(str)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function isEmptyObj(obj) { |
|
|
|
function isEmptyObj(obj) { |
|
|
|
for (var key in obj) { |
|
|
|
for (var key in obj) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -16005,6 +16009,14 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() { |
|
|
|
var fileIdBytes = stringToBytes(fileId); |
|
|
|
var fileIdBytes = stringToBytes(fileId); |
|
|
|
var passwordBytes; |
|
|
|
var passwordBytes; |
|
|
|
if (password) { |
|
|
|
if (password) { |
|
|
|
|
|
|
|
if (revision === 6) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
password = utf8StringToString(password); |
|
|
|
|
|
|
|
} catch (ex) { |
|
|
|
|
|
|
|
warn('CipherTransformFactory: ' + |
|
|
|
|
|
|
|
'Unable to convert UTF8 encoded password.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
passwordBytes = stringToBytes(password); |
|
|
|
passwordBytes = stringToBytes(password); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -16109,7 +16121,7 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() { |
|
|
|
|
|
|
|
|
|
|
|
CipherTransformFactory.prototype = { |
|
|
|
CipherTransformFactory.prototype = { |
|
|
|
createCipherTransform: |
|
|
|
createCipherTransform: |
|
|
|
function CipherTransformFactory_createCipherTransform(num, gen) { |
|
|
|
function CipherTransformFactory_createCipherTransform(num, gen) { |
|
|
|
if (this.algorithm === 4 || this.algorithm === 5) { |
|
|
|
if (this.algorithm === 4 || this.algorithm === 5) { |
|
|
|
return new CipherTransform( |
|
|
|
return new CipherTransform( |
|
|
|
buildCipherConstructor(this.cf, this.stmf, |
|
|
|
buildCipherConstructor(this.cf, this.stmf, |
|
|
|