diff --git a/bower.json b/bower.json index 2f80ab2ba..67acdfd86 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.513", + "version": "1.1.515", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 4a1c99f5b..b0eb375f8 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.513'; -PDFJS.build = '9332da3'; +PDFJS.version = '1.1.515'; +PDFJS.build = '3eaeacf'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -18582,7 +18582,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { if (cmap instanceof IdentityCMap) { return new IdentityToUnicodeMap(0, 0xFFFF); } - var map = []; + var map = new Array(cmap.length); // Convert UTF-16BE // NOTE: cmap can be a sparse array, so use forEach instead of for(;;) // to iterate over all keys. @@ -20195,6 +20195,10 @@ var CMap = (function CMapClosure() { out.length = 1; }, + get length() { + return this._map.length; + }, + get isIdentityCMap() { if (!(this.name === 'Identity-H' || this.name === 'Identity-V')) { return false; @@ -20271,6 +20275,10 @@ var IdentityCMap = (function IdentityCMapClosure() { readCharCode: CMap.prototype.readCharCode, + get length() { + return 0x10000; + }, + get isIdentityCMap() { error('should not access .isIdentityCMap'); } diff --git a/build/pdf.js b/build/pdf.js index b0d8b768c..62e315080 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.513'; -PDFJS.build = '9332da3'; +PDFJS.version = '1.1.515'; +PDFJS.build = '3eaeacf'; (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 304cebdd6..229f8c3f9 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.513'; -PDFJS.build = '9332da3'; +PDFJS.version = '1.1.515'; +PDFJS.build = '3eaeacf'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -12131,7 +12131,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { if (cmap instanceof IdentityCMap) { return new IdentityToUnicodeMap(0, 0xFFFF); } - var map = []; + var map = new Array(cmap.length); // Convert UTF-16BE // NOTE: cmap can be a sparse array, so use forEach instead of for(;;) // to iterate over all keys. @@ -13744,6 +13744,10 @@ var CMap = (function CMapClosure() { out.length = 1; }, + get length() { + return this._map.length; + }, + get isIdentityCMap() { if (!(this.name === 'Identity-H' || this.name === 'Identity-V')) { return false; @@ -13820,6 +13824,10 @@ var IdentityCMap = (function IdentityCMapClosure() { readCharCode: CMap.prototype.readCharCode, + get length() { + return 0x10000; + }, + get isIdentityCMap() { error('should not access .isIdentityCMap'); } diff --git a/package.json b/package.json index e26e45b38..bede63937 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.1.513", + "version": "1.1.515", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",