|
|
@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PDFJS.version = '1.1.169'; |
|
|
|
PDFJS.version = '1.1.171'; |
|
|
|
PDFJS.build = 'c7756d5'; |
|
|
|
PDFJS.build = 'd105734'; |
|
|
|
|
|
|
|
|
|
|
|
(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
|
|
|
@ -9262,6 +9262,10 @@ var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
PDFDocument.prototype = { |
|
|
|
PDFDocument.prototype = { |
|
|
|
parse: function PDFDocument_parse(recoveryMode) { |
|
|
|
parse: function PDFDocument_parse(recoveryMode) { |
|
|
|
this.setup(recoveryMode); |
|
|
|
this.setup(recoveryMode); |
|
|
|
|
|
|
|
var version = this.catalog.catDict.get('Version'); |
|
|
|
|
|
|
|
if (isName(version)) { |
|
|
|
|
|
|
|
this.pdfFormatVersion = version.name; |
|
|
|
|
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
// checking if AcroForm is present
|
|
|
|
// checking if AcroForm is present
|
|
|
|
this.acroForm = this.catalog.catDict.get('AcroForm'); |
|
|
|
this.acroForm = this.catalog.catDict.get('AcroForm'); |
|
|
@ -9363,8 +9367,10 @@ var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
version += String.fromCharCode(ch); |
|
|
|
version += String.fromCharCode(ch); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!this.pdfFormatVersion) { |
|
|
|
// removing "%PDF-"-prefix
|
|
|
|
// removing "%PDF-"-prefix
|
|
|
|
this.pdfFormatVersion = version.substring(5); |
|
|
|
this.pdfFormatVersion = version.substring(5); |
|
|
|
|
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// May not be a PDF file, continue anyway.
|
|
|
|
// May not be a PDF file, continue anyway.
|
|
|
|