mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Do not alter the encoding if no file is going to be altered
This commit is contained in:
parent
0c091ca855
commit
5e37bf7aeb
1 changed files with 3 additions and 0 deletions
3
pdf.js
3
pdf.js
|
@ -4304,6 +4304,9 @@ var PartialEvaluator = (function() {
|
|||
var index = GlyphsUnicode[glyph] || i;
|
||||
glyphsMap[glyph] = encodingMap[i] = index;
|
||||
|
||||
if (!fontFile)
|
||||
continue;
|
||||
|
||||
if (index <= 0x1f || (index >= 127 && index <= 255))
|
||||
glyphsMap[glyph] = encodingMap[i] += kCmapGlyphOffset;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue