PDF/A-1 doesn't allow transparency.

This commit is contained in:
Osman Tunçelli
2021-09-28 04:51:37 +03:00
committed by GitHub
parent 4c36f84a0d
commit eaf0c5da6e

View File

@@ -495,7 +495,7 @@
IndirectReferenceToken smaskReference = null;
if (png.HasAlphaChannel)
if (png.HasAlphaChannel && documentBuilder.ArchiveStandard != PdfAStandard.A1B && documentBuilder.ArchiveStandard != PdfAStandard.A1A)
{
var smaskData = new byte[data.Length / 3];
for (var rowIndex = 0; rowIndex < png.Height; rowIndex++)
@@ -917,4 +917,4 @@
}
}
}