diff --git a/bower.json b/bower.json index b787949bc..0609d21d4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.527", + "version": "1.1.529", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 39b195191..71e350edb 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.527'; -PDFJS.build = '2096a2a'; +PDFJS.version = '1.1.529'; +PDFJS.build = 'd1d81de'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -9714,7 +9714,8 @@ var Dict = (function DictClosure() { // Same as get(), but dereferences all elements if the result is an Array. getArray: function Dict_getArray(key1, key2, key3) { var value = this.get(key1, key2, key3); - if (!isArray(value)) { + var xref = this.xref; + if (!isArray(value) || !xref) { return value; } value = value.slice(); // Ensure that we don't modify the Dict data. @@ -9722,7 +9723,7 @@ var Dict = (function DictClosure() { if (!isRef(value[i])) { continue; } - value[i] = this.xref.fetch(value[i]); + value[i] = xref.fetch(value[i]); } return value; }, diff --git a/build/pdf.js b/build/pdf.js index 3bd3471c1..7ece20b93 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.527'; -PDFJS.build = '2096a2a'; +PDFJS.version = '1.1.529'; +PDFJS.build = 'd1d81de'; (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 8c48ad457..182560ef3 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.527'; -PDFJS.build = '2096a2a'; +PDFJS.version = '1.1.529'; +PDFJS.build = 'd1d81de'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -3258,7 +3258,8 @@ var Dict = (function DictClosure() { // Same as get(), but dereferences all elements if the result is an Array. getArray: function Dict_getArray(key1, key2, key3) { var value = this.get(key1, key2, key3); - if (!isArray(value)) { + var xref = this.xref; + if (!isArray(value) || !xref) { return value; } value = value.slice(); // Ensure that we don't modify the Dict data. @@ -3266,7 +3267,7 @@ var Dict = (function DictClosure() { if (!isRef(value[i])) { continue; } - value[i] = this.xref.fetch(value[i]); + value[i] = xref.fetch(value[i]); } return value; }, diff --git a/package.json b/package.json index 4c4d1e24b..8f23e90b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.527", + "version": "1.1.529", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",