|
|
@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.0.281'; |
|
|
|
PDFJS.version = '1.0.284'; |
|
|
|
PDFJS.build = 'c7c1639'; |
|
|
|
PDFJS.build = '5ded0ea'; |
|
|
|
|
|
|
|
|
|
|
|
(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
|
|
|
@ -6893,8 +6893,7 @@ var NetworkManager = (function NetworkManagerClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getArrayBuffer(xhr) { |
|
|
|
function getArrayBuffer(xhr) { |
|
|
|
var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse || |
|
|
|
var data = xhr.response; |
|
|
|
xhr.responseArrayBuffer || xhr.response); |
|
|
|
|
|
|
|
if (typeof data !== 'string') { |
|
|
|
if (typeof data !== 'string') { |
|
|
|
return data; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
@ -6946,7 +6945,7 @@ var NetworkManager = (function NetworkManagerClosure() { |
|
|
|
pendingRequest.expectedStatus = 200; |
|
|
|
pendingRequest.expectedStatus = 200; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
xhr.mozResponseType = xhr.responseType = 'arraybuffer'; |
|
|
|
xhr.responseType = 'arraybuffer'; |
|
|
|
|
|
|
|
|
|
|
|
if (args.onProgress) { |
|
|
|
if (args.onProgress) { |
|
|
|
xhr.onprogress = args.onProgress; |
|
|
|
xhr.onprogress = args.onProgress; |
|
|
@ -43785,20 +43784,6 @@ var JpxImage = (function JpxImageClosure() { |
|
|
|
this.failOnCorruptedImage = false; |
|
|
|
this.failOnCorruptedImage = false; |
|
|
|
} |
|
|
|
} |
|
|
|
JpxImage.prototype = { |
|
|
|
JpxImage.prototype = { |
|
|
|
load: function JpxImage_load(url) { |
|
|
|
|
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
|
|
|
|
xhr.open('GET', url, true); |
|
|
|
|
|
|
|
xhr.responseType = 'arraybuffer'; |
|
|
|
|
|
|
|
xhr.onload = (function() { |
|
|
|
|
|
|
|
// TODO catch parse error
|
|
|
|
|
|
|
|
var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer); |
|
|
|
|
|
|
|
this.parse(data); |
|
|
|
|
|
|
|
if (this.onload) { |
|
|
|
|
|
|
|
this.onload(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).bind(this); |
|
|
|
|
|
|
|
xhr.send(null); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
parse: function JpxImage_parse(data) { |
|
|
|
parse: function JpxImage_parse(data) { |
|
|
|
|
|
|
|
|
|
|
|
var head = readUint16(data, 0); |
|
|
|
var head = readUint16(data, 0); |
|
|
|