Summary
When drawing an indexed/palette PNG with transparency (tRNS) onto an existing PDF page using XGraphics.DrawImage, PDFsharp 6.2.4 or 7.0.0-preview-1 produces an output PDF that contains the image XObject, but the image is not visible when rendered on macOS. If the exact same image is first converted to RGBA PNG, the image renders visibly.
Environment
- PDFsharp: 6.2.4
- Target framework tested: net10.0
- OS tested: macOS
- Renderer used to verify: macOS
sips / Preview-style rendering
Issue.zip
Summary
When drawing an indexed/palette PNG with transparency (
tRNS) onto an existing PDF page usingXGraphics.DrawImage, PDFsharp 6.2.4 or 7.0.0-preview-1 produces an output PDF that contains the image XObject, but the image is not visible when rendered on macOS. If the exact same image is first converted to RGBA PNG, the image renders visibly.Environment
sips/ Preview-style renderingIssue.zip