Browse Source

PDF.js version 1.3.228 - See mozilla/pdf.js@0aa373cdf38448adaf86bfbbe88b5504dbc37ea3

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

+ 1 - 1
bower.json

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

+ 6 - 4
build/pdf.combined.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.3.226';
-var pdfjsBuild = '2327482';
+var pdfjsVersion = '1.3.228';
+var pdfjsBuild = '0aa373c';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -37367,10 +37367,12 @@ var Font = (function FontClosure() {
               var glyphId = properties.glyphNames.indexOf(glyphName);
               if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
                 charCodeToGlyphId[charCode] = glyphId;
-              } else {
-                charCodeToGlyphId[charCode] = 0; // notdef
+                found = true;
               }
             }
+            if (!found) {
+              charCodeToGlyphId[charCode] = 0; // notdef
+            }
           }
         } else if (cmapPlatformId === 0 && cmapEncodingId === 0) {
           // Default Unicode semantics, use the charcodes as is.

+ 2 - 2
build/pdf.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.3.226';
-var pdfjsBuild = '2327482';
+var pdfjsVersion = '1.3.228';
+var pdfjsBuild = '0aa373c';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?

+ 6 - 4
build/pdf.worker.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.3.226';
-var pdfjsBuild = '2327482';
+var pdfjsVersion = '1.3.228';
+var pdfjsBuild = '0aa373c';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -29547,10 +29547,12 @@ var Font = (function FontClosure() {
               var glyphId = properties.glyphNames.indexOf(glyphName);
               if (glyphId > 0 && hasGlyph(glyphId, -1, -1)) {
                 charCodeToGlyphId[charCode] = glyphId;
-              } else {
-                charCodeToGlyphId[charCode] = 0; // notdef
+                found = true;
               }
             }
+            if (!found) {
+              charCodeToGlyphId[charCode] = 0; // notdef
+            }
           }
         } else if (cmapPlatformId === 0 && cmapEncodingId === 0) {
           // Default Unicode semantics, use the charcodes as is.

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.3.226",
+  "version": "1.3.228",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [