mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
#481 skip resource entry if null token
This commit is contained in:
@@ -52,6 +52,11 @@
|
||||
|
||||
foreach (var pair in xobjectDictionary.Data)
|
||||
{
|
||||
if (pair.Value is NullToken)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(pair.Value is IndirectReferenceToken reference))
|
||||
{
|
||||
throw new InvalidOperationException($"Expected the XObject dictionary value for key /{pair.Key} to be an indirect reference, instead got: {pair.Value}.");
|
||||
|
||||
Reference in New Issue
Block a user