mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
handle hex registry and ordering. decrypt hex tokens #34
cid fonts may contain a registry, ordering and supplement to identify the font. we were checking for string registry and ordering tokens but failing on hex tokens. for encrypted documents we now decrypt hex data.
This commit is contained in:
@@ -358,6 +358,16 @@
|
||||
|
||||
break;
|
||||
}
|
||||
case HexToken hexToken:
|
||||
{
|
||||
var data = hexToken.Bytes.ToArray();
|
||||
|
||||
var decrypted = DecryptData(data, reference);
|
||||
|
||||
token = new HexToken(Hex.GetString(decrypted).ToCharArray());
|
||||
|
||||
break;
|
||||
}
|
||||
case DictionaryToken dictionary:
|
||||
{
|
||||
// PDFBOX-2936: avoid orphan /CF dictionaries found in US govt "I-" files
|
||||
|
||||
Reference in New Issue
Block a user