|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.0.1033'; |
|
|
|
PDFJS.version = '1.0.1035'; |
|
|
|
PDFJS.build = '6e66e30'; |
|
|
|
PDFJS.build = '55098bc'; |
|
|
|
|
|
|
|
|
|
|
|
(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
|
|
|
@ -8985,9 +8985,9 @@ var Page = (function PageClosure() { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
var FINGERPRINT_FIRST_BYTES = 1024; |
|
|
|
var FINGERPRINT_FIRST_BYTES = 1024; |
|
|
|
|
|
|
|
|
|
|
|
var EMPTY_FINGERPRINT = '\x00\x00\x00\x00\x00\x00\x00' + |
|
|
|
var EMPTY_FINGERPRINT = '\x00\x00\x00\x00\x00\x00\x00' + |
|
|
|
'\x00\x00\x00\x00\x00\x00\x00\x00\x00'; |
|
|
|
'\x00\x00\x00\x00\x00\x00\x00\x00\x00'; |
|
|
|
|
|
|
|
|
|
|
|
function PDFDocument(pdfManager, arg, password) { |
|
|
|
function PDFDocument(pdfManager, arg, password) { |
|
|
|
if (isStream(arg)) { |
|
|
|
if (isStream(arg)) { |
|
|
|
init.call(this, pdfManager, arg, password); |
|
|
|
init.call(this, pdfManager, arg, password); |
|
|
@ -9199,11 +9199,13 @@ var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
return shadow(this, 'documentInfo', docInfo); |
|
|
|
return shadow(this, 'documentInfo', docInfo); |
|
|
|
}, |
|
|
|
}, |
|
|
|
get fingerprint() { |
|
|
|
get fingerprint() { |
|
|
|
var xref = this.xref, hash, fileID = ''; |
|
|
|
var xref = this.xref, idArray, hash, fileID = ''; |
|
|
|
|
|
|
|
|
|
|
|
if (xref.trailer.has('ID') && |
|
|
|
if (xref.trailer.has('ID')) { |
|
|
|
xref.trailer.get('ID')[0] !== EMPTY_FINGERPRINT) { |
|
|
|
idArray = xref.trailer.get('ID'); |
|
|
|
hash = stringToBytes(xref.trailer.get('ID')[0]); |
|
|
|
} |
|
|
|
|
|
|
|
if (idArray && isArray(idArray) && idArray[0] !== EMPTY_FINGERPRINT) { |
|
|
|
|
|
|
|
hash = stringToBytes(idArray[0]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (this.stream.ensureRange) { |
|
|
|
if (this.stream.ensureRange) { |
|
|
|
this.stream.ensureRange(0, |
|
|
|
this.stream.ensureRange(0, |
|
|
|