diff --git a/bower.json b/bower.json index 4f2c83f04..9c719a697 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.332", + "version": "1.0.334", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index ad7a22fff..4639b3e55 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.332'; -PDFJS.build = '12a35f2'; +PDFJS.version = '1.0.334'; +PDFJS.build = '75859b8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -20469,6 +20469,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { return errorFont(); } } + if (!fontRef) { + warn('fontRef not available'); + return errorFont(); + } + if (this.fontCache.has(fontRef)) { return this.fontCache.get(fontRef); } diff --git a/build/pdf.js b/build/pdf.js index a070fe8af..b1ddef98e 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.332'; -PDFJS.build = '12a35f2'; +PDFJS.version = '1.0.334'; +PDFJS.build = '75859b8'; (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 234058542..160fd8e21 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.0.332'; -PDFJS.build = '12a35f2'; +PDFJS.version = '1.0.334'; +PDFJS.build = '75859b8'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -15953,6 +15953,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { return errorFont(); } } + if (!fontRef) { + warn('fontRef not available'); + return errorFont(); + } + if (this.fontCache.has(fontRef)) { return this.fontCache.get(fontRef); } diff --git a/package.json b/package.json index 19b8f217e..fbfc9eb0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.332", + "version": "1.0.334", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",