diff --git a/bower.json b/bower.json index 83bb17d0f..c9db5937f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.452", + "version": "1.1.454", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index b9dcd7941..c19a8c7a9 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.452'; -PDFJS.build = 'b360fd1'; +PDFJS.version = '1.1.454'; +PDFJS.build = '12b0b97'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -9523,12 +9523,11 @@ var PDFDocument = (function PDFDocumentClosure() { return shadow(this, 'documentInfo', docInfo); }, get fingerprint() { - var xref = this.xref, idArray, hash, fileID = ''; + var xref = this.xref, hash, fileID = ''; + var idArray = xref.trailer.get('ID'); - if (xref.trailer.has('ID')) { - idArray = xref.trailer.get('ID'); - } - if (idArray && isArray(idArray) && idArray[0] !== EMPTY_FINGERPRINT) { + if (idArray && isArray(idArray) && idArray[0] && isString(idArray[0]) && + idArray[0] !== EMPTY_FINGERPRINT) { hash = stringToBytes(idArray[0]); } else { if (this.stream.ensureRange) { diff --git a/build/pdf.js b/build/pdf.js index 21d254f59..e08415ae2 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.452'; -PDFJS.build = 'b360fd1'; +PDFJS.version = '1.1.454'; +PDFJS.build = '12b0b97'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it diff --git a/build/pdf.worker.js b/build/pdf.worker.js index b0d7feb29..13d9d2714 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.1.452'; -PDFJS.build = 'b360fd1'; +PDFJS.version = '1.1.454'; +PDFJS.build = '12b0b97'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3066,12 +3066,11 @@ var PDFDocument = (function PDFDocumentClosure() { return shadow(this, 'documentInfo', docInfo); }, get fingerprint() { - var xref = this.xref, idArray, hash, fileID = ''; + var xref = this.xref, hash, fileID = ''; + var idArray = xref.trailer.get('ID'); - if (xref.trailer.has('ID')) { - idArray = xref.trailer.get('ID'); - } - if (idArray && isArray(idArray) && idArray[0] !== EMPTY_FINGERPRINT) { + if (idArray && isArray(idArray) && idArray[0] && isString(idArray[0]) && + idArray[0] !== EMPTY_FINGERPRINT) { hash = stringToBytes(idArray[0]); } else { if (this.stream.ensureRange) { diff --git a/package.json b/package.json index 73511a9c2..adbe1a847 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.452", + "version": "1.1.454", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",