Skip to content

Indexed PNG with transparency is embedded but renders invisible #392

Description

@hippasus

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions