CCITT Fax doesn't have to be image masks

This commit is contained in:
Kasper Frank
2021-05-07 14:19:42 +02:00
parent 65a4c141ba
commit eaba3d1c6c

View File

@@ -75,7 +75,8 @@
ILookupFilterProvider filterProvider,
bool cannotRecurse = false)
{
if (imageDictionary.GetObjectOrDefault(NameToken.ImageMask, NameToken.Im) != null)
if (imageDictionary.GetObjectOrDefault(NameToken.ImageMask, NameToken.Im) != null ||
filterProvider.GetFilters(imageDictionary, scanner).OfType<CcittFaxDecodeFilter>().Any())
{
var decodeRaw = imageDictionary.GetObjectOrDefault(NameToken.Decode, NameToken.D) as ArrayToken
?? new ArrayToken(EmptyArray<IToken>.Instance);