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