diff --git a/bower.json b/bower.json index 3ed324cbe..fa9b9a047 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.715", + "version": "1.0.717", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e5c00df92..42cf4d0df 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.0.715'; -PDFJS.build = 'b4fb1e2'; +PDFJS.version = '1.0.717'; +PDFJS.build = '4834f1c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -23192,16 +23192,12 @@ var Font = (function FontClosure() { var numMissing = numOfSidebearings - ((metrics.length - numOfMetrics * 4) >> 1); - var i, ii; if (numMissing > 0) { - font.pos = (font.start ? font.start : 0) + metrics.offset; - var entries = ''; - for (i = 0, ii = metrics.length; i < ii; i++) { - entries += String.fromCharCode(font.getByte()); - } - for (i = 0; i < numMissing; i++) { - entries += '\x00\x00'; - } + // For each missing glyph, we set both the width and lsb to 0 (zero). + // Since we need to add two properties for each glyph, this explains + // the use of |numMissing * 2| when initializing the typed array. + var entries = new Uint8Array(metrics.length + numMissing * 2); + entries.set(metrics.data); metrics.data = entries; } } diff --git a/build/pdf.js b/build/pdf.js index 6f4b70a86..26286dfeb 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.0.715'; -PDFJS.build = 'b4fb1e2'; +PDFJS.version = '1.0.717'; +PDFJS.build = '4834f1c'; (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 cb1608050..4b67b5b00 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.0.715'; -PDFJS.build = 'b4fb1e2'; +PDFJS.version = '1.0.717'; +PDFJS.build = '4834f1c'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -17162,16 +17162,12 @@ var Font = (function FontClosure() { var numMissing = numOfSidebearings - ((metrics.length - numOfMetrics * 4) >> 1); - var i, ii; if (numMissing > 0) { - font.pos = (font.start ? font.start : 0) + metrics.offset; - var entries = ''; - for (i = 0, ii = metrics.length; i < ii; i++) { - entries += String.fromCharCode(font.getByte()); - } - for (i = 0; i < numMissing; i++) { - entries += '\x00\x00'; - } + // For each missing glyph, we set both the width and lsb to 0 (zero). + // Since we need to add two properties for each glyph, this explains + // the use of |numMissing * 2| when initializing the typed array. + var entries = new Uint8Array(metrics.length + numMissing * 2); + entries.set(metrics.data); metrics.data = entries; } } diff --git a/package.json b/package.json index aed0006c8..629010623 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.715", + "version": "1.0.717", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",