|
@@ -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 {
|