Skip to content
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

[Bug]: Node rendering regression after smask changes #18400

Open
horacio-penya opened this issue Jul 6, 2024 · 1 comment
Open

[Bug]: Node rendering regression after smask changes #18400

horacio-penya opened this issue Jul 6, 2024 · 1 comment

Comments

@horacio-penya
Copy link

Attach (recommended) or Link to PDF file

a.pdf

Web browser and its version

Node v18.17.0

Operating system and its version

MacOS 14.5 (23F79)

PDF.js version

4.4.168

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

Render the file using pdf2png.

What is the expected behavior?

output

What went wrong?

output_0

Link to a viewer

No response

Additional context

Regression appeared in 82989e6. It seems the new genericComposeSMask leaves the context in the wrong state, and when the fill command runs, it fills the outside instead of the inside of the path.

It only happens on node, browser renders it ok.

Thanks!

@Snuffleupagus
Copy link
Collaborator

This is unfortunately the expected result of PR #18029, please note #18029 (review) and #18029 (comment).

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

No branches or pull requests

2 participants