mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-08-20 09:21:57 +08:00
Make sure the value of the ImageMask / Im token is check in ColorSpaceDetailsParser
This commit is contained in:
parent
47584716ec
commit
0bed135bad
@ -43,7 +43,8 @@
|
||||
ILookupFilterProvider filterProvider,
|
||||
bool cannotRecurse = false)
|
||||
{
|
||||
if (imageDictionary.GetObjectOrDefault(NameToken.ImageMask, NameToken.Im) != null ||
|
||||
if ((imageDictionary.TryGet(NameToken.ImageMask, scanner, out BooleanToken isImageMask) && isImageMask.Data) ||
|
||||
(imageDictionary.TryGet(NameToken.Im, scanner, out BooleanToken isImMask) && isImMask.Data) ||
|
||||
filterProvider.GetFilters(imageDictionary, scanner).OfType<CcittFaxDecodeFilter>().Any())
|
||||
{
|
||||
if (cannotRecurse)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user