Explorar o código

PDF.js version 1.0.889

Pdf Bot %!s(int64=10) %!d(string=hai) anos
pai
achega
55a2d83916
Modificáronse 5 ficheiros con 20 adicións e 8 borrados
  1. 1 1
      bower.json
  2. 8 2
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 8 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
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"

+ 8 - 2
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)) {

+ 2 - 2
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

+ 8 - 2
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)) {

+ 1 - 1
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",