diff --git a/bower.json b/bower.json index 0f77b7fea..4323e0a4e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.653", + "version": "1.0.655", "keywords": [ "Mozilla", "pdf", diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e8c21672c..bf81cac20 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.653'; -PDFJS.build = '41a5bce'; +PDFJS.version = '1.0.655'; +PDFJS.build = 'c369150'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -17733,7 +17733,7 @@ var CMap = (function CMapClosure() { return this._map; }, - readCharCode: function(str, offset) { + readCharCode: function(str, offset, out) { var c = 0; var codespaceRanges = this.codespaceRanges; var codespaceRangesLen = this.codespaceRanges.length; @@ -17747,12 +17747,14 @@ var CMap = (function CMapClosure() { var low = codespaceRange[k++]; var high = codespaceRange[k++]; if (c >= low && c <= high) { - return [c, n + 1]; + out.charcode = c; + out.length = n + 1; + return; } } } - - return [0, 1]; + out.charcode = 0; + out.length = 1; } }; return CMap; @@ -22958,10 +22960,11 @@ var Font = (function FontClosure() { if (this.cMap) { // composite fonts have multi-byte strings convert the string from // single-byte to multi-byte + var c = {}; while (i < chars.length) { - var c = this.cMap.readCharCode(chars, i); - charcode = c[0]; - var length = c[1]; + this.cMap.readCharCode(chars, i, c); + charcode = c.charcode; + var length = c.length; i += length; glyph = this.charToGlyph(charcode); glyphs.push(glyph); diff --git a/build/pdf.js b/build/pdf.js index 7b3433acb..aa6d27b84 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.653'; -PDFJS.build = '41a5bce'; +PDFJS.version = '1.0.655'; +PDFJS.build = 'c369150'; (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 ef5ceba04..53b235510 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.653'; -PDFJS.build = '41a5bce'; +PDFJS.version = '1.0.655'; +PDFJS.build = 'c369150'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -12876,7 +12876,7 @@ var CMap = (function CMapClosure() { return this._map; }, - readCharCode: function(str, offset) { + readCharCode: function(str, offset, out) { var c = 0; var codespaceRanges = this.codespaceRanges; var codespaceRangesLen = this.codespaceRanges.length; @@ -12890,12 +12890,14 @@ var CMap = (function CMapClosure() { var low = codespaceRange[k++]; var high = codespaceRange[k++]; if (c >= low && c <= high) { - return [c, n + 1]; + out.charcode = c; + out.length = n + 1; + return; } } } - - return [0, 1]; + out.charcode = 0; + out.length = 1; } }; return CMap; @@ -18101,10 +18103,11 @@ var Font = (function FontClosure() { if (this.cMap) { // composite fonts have multi-byte strings convert the string from // single-byte to multi-byte + var c = {}; while (i < chars.length) { - var c = this.cMap.readCharCode(chars, i); - charcode = c[0]; - var length = c[1]; + this.cMap.readCharCode(chars, i, c); + charcode = c.charcode; + var length = c.length; i += length; glyph = this.charToGlyph(charcode); glyphs.push(glyph); diff --git a/package.json b/package.json index 109eef26f..8e3b4881a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.653", + "version": "1.0.655", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",