Merge pull request #372 from otuncelli/master

PDF/A-1 doesn't allow transparency.
This commit is contained in:
Eliot Jones
2021-09-28 17:00:33 -04:00
committed by GitHub

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 @@
}
}
}