diff --git a/bower.json b/bower.json index edd6a956c..be5b60296 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.62", + "version": "1.3.64", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e06f15de9..3b028f41a 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.62'; -PDFJS.build = '084bb86'; +PDFJS.version = '1.3.64'; +PDFJS.build = 'a966022'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -23928,6 +23928,9 @@ function reverseIfRtl(chars) { } function adjustWidths(properties) { + if (!properties.fontMatrix) { + return; + } if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) { return; } @@ -24442,6 +24445,8 @@ var Font = (function FontClosure() { // view of the sanitizer data = this.checkAndRepair(name, file, properties); if (this.isOpenType) { + adjustWidths(properties); + type = 'OpenType'; } break; @@ -25874,6 +25879,8 @@ var Font = (function FontClosure() { cffFile = new Stream(tables['CFF '].data); cff = new CFFFont(cffFile, properties); + adjustWidths(properties); + return this.convert(name, cff, properties); } diff --git a/build/pdf.js b/build/pdf.js index 6197b1d9a..3711ad826 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.62'; -PDFJS.build = '084bb86'; +PDFJS.version = '1.3.64'; +PDFJS.build = 'a966022'; (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 a8d61bb12..89227d8d8 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') { (typeof window !== 'undefined' ? window : this).PDFJS = {}; } -PDFJS.version = '1.3.62'; -PDFJS.build = '084bb86'; +PDFJS.version = '1.3.64'; +PDFJS.build = 'a966022'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -16813,6 +16813,9 @@ function reverseIfRtl(chars) { } function adjustWidths(properties) { + if (!properties.fontMatrix) { + return; + } if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) { return; } @@ -17327,6 +17330,8 @@ var Font = (function FontClosure() { // view of the sanitizer data = this.checkAndRepair(name, file, properties); if (this.isOpenType) { + adjustWidths(properties); + type = 'OpenType'; } break; @@ -18759,6 +18764,8 @@ var Font = (function FontClosure() { cffFile = new Stream(tables['CFF '].data); cff = new CFFFont(cffFile, properties); + adjustWidths(properties); + return this.convert(name, cff, properties); } diff --git a/package.json b/package.json index 53a69447f..4cd60a9d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.3.62", + "version": "1.3.64", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",