You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current colour space in which colour values shall be interpreted (see 8.6, "Colour Spaces"). There are two separate colour space parameters: one for stroking and one for all other painting operations. Initial value: DeviceGray.
We should probably have a null rgb color or something like that to indicate to use a fully transparent one.
We might need to somehow limit that to the /Pattern handling, since given the above I'd worry about regressions elsewhere if we do that unconditionally (especially since the PDF document in question is corrupt).
Attach (recommended) or Link to PDF file
image2.pdf
Web browser and its version
Firefox nightly
Operating system and its version
Windows 11
PDF.js version
last one
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Open the pdf
What is the expected behavior?
What went wrong?
Link to a viewer
No response
Additional context
The bug has been reported:
https://issues.apache.org/jira/browse/PDFBOX-5851
As mentioned in the bug report,
scn
andSCN
are used without a previous call tocs
so we fallback onDeviceGray
:pdf.js/src/core/evaluator.js
Lines 4876 to 4877 in ed83d7c
We should probably have a
null
rgb color or something like that to indicate to use a fully transparent one.The rendering is correct in either Acrobat or Chrome.
The text was updated successfully, but these errors were encountered: