File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -5513,7 +5513,14 @@ var CFFParser = (function CFFParserClosure() {
5513
5513
}
5514
5514
5515
5515
var fontDict = cff .fdArray [0 ];
5516
+ // Make the sanitizer happy and remove anything that is only for CID
5517
+ // fonts.
5516
5518
fontDict .setByKey (17 , topDict .getByName ('CharStrings' ));
5519
+ fontDict .removeByName ('CIDFontVersion' );
5520
+ fontDict .removeByName ('CIDFontRevision' );
5521
+ fontDict .removeByName ('CIDFontType' );
5522
+ fontDict .removeByName ('CIDCount' );
5523
+ fontDict .removeByName ('UIDBase' );
5517
5524
cff .topDict = fontDict ;
5518
5525
cff .isCIDFont = false ;
5519
5526
delete cff .fdArray ;
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" : " cid_cff" ,
800
+ "file" : " pdfs/cid_cff.pdf" ,
801
+ "md5" : " a19a18eaa626262cc45e0760004d6de9" ,
802
+ "rounds" : 1 ,
803
+ "type" : " eq"
798
804
}
799
805
]
You can’t perform that action at this time.
0 commit comments