瀏覽代碼

PDF.js version 1.1.205

Pdf Bot 10 年之前
父節點
當前提交
691c9c3190
共有 5 個文件被更改,包括 14 次插入12 次删除
  1. 1 1
      bower.json
  2. 5 4
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 5 4
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 5 - 4
build/pdf.combined.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.203';
-PDFJS.build = '0259448';
+PDFJS.version = '1.1.205';
+PDFJS.build = 'bf20334';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -24801,11 +24801,12 @@ var Font = (function FontClosure() {
               }
             }
             if (!found && properties.glyphNames) {
-              // Try to map using the post table. There are currently no known
-              // pdfs that this fixes.
+              // Try to map using the post table.
               var glyphId = properties.glyphNames.indexOf(glyphName);
               if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
                 charCodeToGlyphId[charCode] = glyphId;
+              } else {
+                charCodeToGlyphId[charCode] = 0; // notdef
               }
             }
           }

+ 2 - 2
build/pdf.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.203';
-PDFJS.build = '0259448';
+PDFJS.version = '1.1.205';
+PDFJS.build = 'bf20334';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 5 - 4
build/pdf.worker.js

@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.1.203';
-PDFJS.build = '0259448';
+PDFJS.version = '1.1.205';
+PDFJS.build = 'bf20334';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -18448,11 +18448,12 @@ var Font = (function FontClosure() {
               }
             }
             if (!found && properties.glyphNames) {
-              // Try to map using the post table. There are currently no known
-              // pdfs that this fixes.
+              // Try to map using the post table.
               var glyphId = properties.glyphNames.indexOf(glyphName);
               if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
                 charCodeToGlyphId[charCode] = glyphId;
+              } else {
+                charCodeToGlyphId[charCode] = 0; // notdef
               }
             }
           }

+ 1 - 1
package.json

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