mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Remove cid dictionary values for normalized fonts.
This commit is contained in:
parent
a96be1f076
commit
575f2dd8b1
3 changed files with 13 additions and 0 deletions
|
@ -5577,7 +5577,14 @@ var CFFParser = (function CFFParserClosure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var fontDict = cff.fdArray[0];
|
var fontDict = cff.fdArray[0];
|
||||||
|
// Make the sanitizer happy and remove anything that is only for CID
|
||||||
|
// fonts.
|
||||||
fontDict.setByKey(17, topDict.getByName('CharStrings'));
|
fontDict.setByKey(17, topDict.getByName('CharStrings'));
|
||||||
|
fontDict.removeByName('CIDFontVersion');
|
||||||
|
fontDict.removeByName('CIDFontRevision');
|
||||||
|
fontDict.removeByName('CIDFontType');
|
||||||
|
fontDict.removeByName('CIDCount');
|
||||||
|
fontDict.removeByName('UIDBase');
|
||||||
cff.topDict = fontDict;
|
cff.topDict = fontDict;
|
||||||
cff.isCIDFont = false;
|
cff.isCIDFont = false;
|
||||||
delete cff.fdArray;
|
delete cff.fdArray;
|
||||||
|
|
BIN
test/pdfs/cid_cff.pdf
Normal file
BIN
test/pdfs/cid_cff.pdf
Normal file
Binary file not shown.
|
@ -769,5 +769,11 @@
|
||||||
"md5": "9f11e815b485f7f0e1fa5c116c636cf9",
|
"md5": "9f11e815b485f7f0e1fa5c116c636cf9",
|
||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{ "id": "cid_cff",
|
||||||
|
"file": "pdfs/cid_cff.pdf",
|
||||||
|
"md5": "a19a18eaa626262cc45e0760004d6de9",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue