1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Add a simpler path for cmap format 0 to cmap format 4

This commit is contained in:
Vivien Nicolas 2011-07-20 14:29:07 +02:00
parent 4275a68e29
commit 3cc9912acd
2 changed files with 17 additions and 33 deletions

3
pdf.js
View file

@ -3722,9 +3722,8 @@ var PartialEvaluator = (function() {
var baseName = encoding.get('BaseEncoding');
if (baseName) {
var base = Encodings[baseName.name];
var index = 0;
for (var j = 0, end = base.length; j < end; j++)
encodingMap[index++] = GlyphsUnicode[base[j]];
encodingMap[j] = GlyphsUnicode[base[j]] || 0;
} else {
TODO('need to load default encoding');
}