Skip to content

Fix Alpha channel not respected on graphics #20020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zenocross
Copy link

Closes #19978

For reference, the structure of the pdf file is the ff:

/BBox [
    167.119995
    261.677
    311.02899
    274.83899
  ]
  /Filter /FlateDecode
  /FormType 1
  /Group <<
    /S /Transparency
    /Type /Group
  >>
  /Length 85
  /Matrix [
    1
    0
    0
    1
    -167.119995
    -261.677
  ]
  /Resources <<
    /ExtGState <<
      /TransGs <<
        /AIS false
        /BM /Multiply
        /CA 1
        /Type /ExtGState
        /ca 1
      >>
    >>
    /ProcSet [
      /PDF
    ]
  >>
  /Subtype /Form
  /Type /XObject
`

@calixteman
Copy link
Contributor

Interesting, but I don't think it's the right way to fix the bug unfortunately...
I slightly modified the pdf in order to add an other drawing in the group:
foo.pdf

While the rendering is the same in Chrome and Acrobat, it's wrong with pdf.js with or without your patch.
I don't know if there is a way to fix this bug, probably something like:
https://github.com/fserb/canvas2D/blob/master/spec/layers.md
could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Alpha channel is not respected on graphics
3 participants