diff --git a/bower.json b/bower.json index 85c4f1492..ad366d12c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.183", + "version": "1.1.185", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 278c12941..9c8d7fdd2 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.183'; -PDFJS.build = '6203dcd'; +PDFJS.version = '1.1.185'; +PDFJS.build = 'd95b4e4'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -13160,7 +13160,7 @@ var ColorSpace = (function ColorSpaceClosure() { error('unrecognized colorspace ' + mode); } } else if (isArray(cs)) { - mode = cs[0].name; + mode = xref.fetchIfRef(cs[0]).name; this.mode = mode; var numComps, params; @@ -13193,7 +13193,7 @@ var ColorSpace = (function ColorSpaceClosure() { } break; case 'Pattern': - var basePatternCS = cs[1]; + var basePatternCS = xref.fetchIfRef(cs[1]) || null; if (basePatternCS) { basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res); } diff --git a/build/pdf.js b/build/pdf.js index b4bf2340d..28bfda606 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.183'; -PDFJS.build = '6203dcd'; +PDFJS.version = '1.1.185'; +PDFJS.build = 'd95b4e4'; (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 1488cbf67..a5634cbbb 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.183'; -PDFJS.build = '6203dcd'; +PDFJS.version = '1.1.185'; +PDFJS.build = 'd95b4e4'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -6807,7 +6807,7 @@ var ColorSpace = (function ColorSpaceClosure() { error('unrecognized colorspace ' + mode); } } else if (isArray(cs)) { - mode = cs[0].name; + mode = xref.fetchIfRef(cs[0]).name; this.mode = mode; var numComps, params; @@ -6840,7 +6840,7 @@ var ColorSpace = (function ColorSpaceClosure() { } break; case 'Pattern': - var basePatternCS = cs[1]; + var basePatternCS = xref.fetchIfRef(cs[1]) || null; if (basePatternCS) { basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res); } diff --git a/package.json b/package.json index 1915369c7..0de00a06e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.183", + "version": "1.1.185", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",