mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-11-28 17:47:12 +08:00
PDF/A-1 doesn't allow transparency.
This commit is contained in:
@@ -495,7 +495,7 @@
|
|||||||
|
|
||||||
IndirectReferenceToken smaskReference = null;
|
IndirectReferenceToken smaskReference = null;
|
||||||
|
|
||||||
if (png.HasAlphaChannel)
|
if (png.HasAlphaChannel && documentBuilder.ArchiveStandard != PdfAStandard.A1B && documentBuilder.ArchiveStandard != PdfAStandard.A1A)
|
||||||
{
|
{
|
||||||
var smaskData = new byte[data.Length / 3];
|
var smaskData = new byte[data.Length / 3];
|
||||||
for (var rowIndex = 0; rowIndex < png.Height; rowIndex++)
|
for (var rowIndex = 0; rowIndex < png.Height; rowIndex++)
|
||||||
@@ -917,4 +917,4 @@
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user