Browse Source

PDF.js version 1.3.58 - See mozilla/pdf.js@171f59c93563b2f92245ed254e4385ee36038912

Pdf Bot 9 years ago
parent
commit
461c20681f
5 changed files with 12 additions and 12 deletions
  1. 1 1
      bower.json
  2. 4 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 4 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.3.56",
+  "version": "1.3.58",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 4 - 4
build/pdf.combined.js

@@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.3.56';
-PDFJS.build = 'e2aca38';
+PDFJS.version = '1.3.58';
+PDFJS.build = '171f59c';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -24032,7 +24032,7 @@ var IdentityToUnicodeMap = (function IdentityToUnicodeMapClosure() {
     },
 
     charCodeOf: function (v) {
-      error('should not call .charCodeOf');
+      return (isInt(v) && v >= this.firstChar && v <= this.lastChar) ? v : -1;
     }
   };
 
@@ -26476,7 +26476,7 @@ var Font = (function FontClosure() {
           }
         }
         // ... via toUnicode map
-        if (!charcode && 'toUnicode' in this) {
+        if (!charcode && this.toUnicode) {
           charcode = this.toUnicode.charCodeOf(glyphUnicode);
         }
         // setting it to unicode if negative or undefined

+ 2 - 2
build/pdf.js

@@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.3.56';
-PDFJS.build = 'e2aca38';
+PDFJS.version = '1.3.58';
+PDFJS.build = '171f59c';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 4 - 4
build/pdf.worker.js

@@ -20,8 +20,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.3.56';
-PDFJS.build = 'e2aca38';
+PDFJS.version = '1.3.58';
+PDFJS.build = '171f59c';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -16920,7 +16920,7 @@ var IdentityToUnicodeMap = (function IdentityToUnicodeMapClosure() {
     },
 
     charCodeOf: function (v) {
-      error('should not call .charCodeOf');
+      return (isInt(v) && v >= this.firstChar && v <= this.lastChar) ? v : -1;
     }
   };
 
@@ -19364,7 +19364,7 @@ var Font = (function FontClosure() {
           }
         }
         // ... via toUnicode map
-        if (!charcode && 'toUnicode' in this) {
+        if (!charcode && this.toUnicode) {
           charcode = this.toUnicode.charCodeOf(glyphUnicode);
         }
         // setting it to unicode if negative or undefined

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.3.56",
+  "version": "1.3.58",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
     "Mozilla",