From e00835ce6425ce483ddb937b78b4ecee681dcbb3 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Wed, 27 May 2015 14:51:20 +0100 Subject: [PATCH] PDF.js version 1.1.171 --- bower.json | 2 +- build/pdf.combined.js | 14 ++++++++++---- build/pdf.js | 4 ++-- build/pdf.worker.js | 14 ++++++++++---- package.json | 2 +- 5 files changed, 24 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index 2f7e0b364..ae7bec130 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.169", + "version": "1.1.171", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 002150f75..2e2c8ba96 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.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. diff --git a/build/pdf.js b/build/pdf.js index 7bdc6abfa..32cb8bb65 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.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 diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 357705c8d..1a9a4bda9 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.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 @@ -2909,6 +2909,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'); @@ -3010,8 +3014,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. diff --git a/package.json b/package.json index 1701cea3c..c5a48bbed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.169", + "version": "1.1.171", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",