mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-08 00:14:35 +08:00
PDF/A-1 doesn't allow transparency.
This commit is contained in:
@@ -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 @@
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user