ソースを参照

PDF.js version 1.5.446 - See mozilla/pdf.js@1fae435e884b31bc3b552fecbbaea8f9fe2961ff

Pdf Bot 8 年 前
コミット
868e9a139d
5 ファイル変更16 行追加10 行削除
  1. 1 1
      bower.json
  2. 6 3
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 6 3
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

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

+ 6 - 3
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.5.444';
-var pdfjsBuild = 'b112f9f';
+var pdfjsVersion = '1.5.446';
+var pdfjsBuild = '1fae435';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -34399,7 +34399,10 @@ var Font = (function FontClosure() {
             charCodeToGlyphId[charCode] = glyphId;
           }
         });
-        if (dupFirstEntry) {
+        if (dupFirstEntry && (isCidToGidMapEmpty || !charCodeToGlyphId[0])) {
+          // We don't duplicate the first entry in the `charCodeToGlyphId` map
+          // if the font has a `CIDToGIDMap` which has already mapped the first
+          // entry to a non-zero `glyphId` (fixes issue7544.pdf).
           charCodeToGlyphId[0] = numGlyphs - 1;
         }
       } else {

+ 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.5.444';
-var pdfjsBuild = 'b112f9f';
+var pdfjsVersion = '1.5.446';
+var pdfjsBuild = '1fae435';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?

+ 6 - 3
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.5.444';
-var pdfjsBuild = 'b112f9f';
+var pdfjsVersion = '1.5.446';
+var pdfjsBuild = '1fae435';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -30116,7 +30116,10 @@ var Font = (function FontClosure() {
             charCodeToGlyphId[charCode] = glyphId;
           }
         });
-        if (dupFirstEntry) {
+        if (dupFirstEntry && (isCidToGidMapEmpty || !charCodeToGlyphId[0])) {
+          // We don't duplicate the first entry in the `charCodeToGlyphId` map
+          // if the font has a `CIDToGIDMap` which has already mapped the first
+          // entry to a non-zero `glyphId` (fixes issue7544.pdf).
           charCodeToGlyphId[0] = numGlyphs - 1;
         }
       } else {

+ 1 - 1
package.json

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