File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -791,6 +791,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
791
791
};
792
792
}
793
793
794
+ var cidEncoding = baseDict .get ('Encoding' );
795
+ if (isName (cidEncoding ))
796
+ properties .cidEncoding = cidEncoding .name ;
797
+
794
798
var cidToGidMap = dict .get ('CIDToGIDMap' );
795
799
if (isStream (cidToGidMap ))
796
800
properties .cidToGidMap = this .readCidToGidMap (cidToGidMap );
Original file line number Diff line number Diff line change @@ -4126,6 +4126,15 @@ var Font = (function FontClosure() {
4126
4126
} else
4127
4127
cid ++;
4128
4128
}
4129
+
4130
+ var cidEncoding = properties .cidEncoding ;
4131
+ if (cidEncoding && cidEncoding .indexOf ('Uni' ) === 0 ) {
4132
+ // input is already Unicode for Uni* CMap encodings.
4133
+ // However, Unicode-to-CID conversion is needed
4134
+ // regardless of the CMap encoding. So we can't reset
4135
+ // unicodeToCID.
4136
+ this .cidToUnicode = [];
4137
+ }
4129
4138
},
4130
4139
4131
4140
bindDOM : function Font_bindDOM () {
@@ -4205,16 +4214,12 @@ var Font = (function FontClosure() {
4205
4214
case 'CIDFontType0' :
4206
4215
if (this .noUnicodeAdaptation ) {
4207
4216
width = this .widths [this .unicodeToCID [charcode ] || charcode ];
4208
- fontCharCode = mapPrivateUseChars (charcode );
4209
- break ;
4210
4217
}
4211
4218
fontCharCode = this .toFontChar [charcode ] || charcode ;
4212
4219
break ;
4213
4220
case 'CIDFontType2' :
4214
4221
if (this .noUnicodeAdaptation ) {
4215
4222
width = this .widths [this .unicodeToCID [charcode ] || charcode ];
4216
- fontCharCode = mapPrivateUseChars (charcode );
4217
- break ;
4218
4223
}
4219
4224
fontCharCode = this .toFontChar [charcode ] || charcode ;
4220
4225
break ;
Original file line number Diff line number Diff line change 37
37
! basicapi.pdf
38
38
! mixedfonts.pdf
39
39
! shading_extend.pdf
40
+ ! noembed-identity.pdf
Original file line number Diff line number Diff line change 795
795
"md5" : " 9f11e815b485f7f0e1fa5c116c636cf9" ,
796
796
"rounds" : 1 ,
797
797
"type" : " eq"
798
+ },
799
+ { "id" : " noembed-identity" ,
800
+ "file" : " pdfs/noembed-identity.pdf" ,
801
+ "md5" : " 05d3803b6c22451e18cb60d8d8c75c0c" ,
802
+ "rounds" : 1 ,
803
+ "type" : " eq"
798
804
}
799
805
]
You can’t perform that action at this time.
0 commit comments