diff --git a/bower.json b/bower.json index af15eb416..114c03cb4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.887", + "version": "1.0.889", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index 951e797aa..cbe4b02aa 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.887'; -PDFJS.build = '878fad4'; +PDFJS.version = '1.0.889'; +PDFJS.build = 'ccd7ae3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -22642,6 +22642,12 @@ var Font = (function FontClosure() { for (var code in GlyphMapForStandardFonts) { map[+code] = GlyphMapForStandardFonts[code]; } + var isIdentityUnicode = this.toUnicode instanceof IdentityToUnicodeMap; + if (!isIdentityUnicode) { + this.toUnicode.forEach(function(charCode, unicodeCharCode) { + map[+charCode] = unicodeCharCode; + }); + } this.toFontChar = map; this.toUnicode = new ToUnicodeMap(map); } else if (/Symbol/i.test(fontName)) { diff --git a/build/pdf.js b/build/pdf.js index d5425328b..03e91036b 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.887'; -PDFJS.build = '878fad4'; +PDFJS.version = '1.0.889'; +PDFJS.build = 'ccd7ae3'; (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 b8821b5df..af7cbba9f 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.887'; -PDFJS.build = '878fad4'; +PDFJS.version = '1.0.889'; +PDFJS.build = 'ccd7ae3'; (function pdfjsWrapper() { // Use strict in our context only - users might not want it @@ -16519,6 +16519,12 @@ var Font = (function FontClosure() { for (var code in GlyphMapForStandardFonts) { map[+code] = GlyphMapForStandardFonts[code]; } + var isIdentityUnicode = this.toUnicode instanceof IdentityToUnicodeMap; + if (!isIdentityUnicode) { + this.toUnicode.forEach(function(charCode, unicodeCharCode) { + map[+charCode] = unicodeCharCode; + }); + } this.toFontChar = map; this.toUnicode = new ToUnicodeMap(map); } else if (/Symbol/i.test(fontName)) { diff --git a/package.json b/package.json index 75b27e798..ffd695f63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.0.887", + "version": "1.0.889", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [ "Mozilla",