mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-18 18:27:55 +08:00
if baseEncodingObject is a IndirectReferenceToken to a NameToken the previous implementation tried to resolve it as a DictionaryToken, which resultet in an PdfFormatException
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
if (baseEncodingObject is NameToken name)
|
||||
if (DirectObjectFinder.TryGet(baseEncodingObject, pdfScanner, out NameToken name))
|
||||
{
|
||||
if (TryGetNamedEncoding(descriptor, name, out var namedEncoding))
|
||||
{
|
||||
|
Reference in New Issue
Block a user