mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.54k stars 9.98k forks source link

[Bug]: Type4 shading isn't correctly rendered #18750

Closed calixteman closed 1 month ago

calixteman commented 1 month ago

Attach (recommended) or Link to PDF file

The pdf has been found in the PDFBox bug tracker. minimal.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?

In Chrome: image In Acrobat: image

What went wrong?

It depends of the zoom level: if it's to high nothing is drawn but if it's small enough we can see for example: image

Link to a viewer

No response

Additional context

No response

Snuffleupagus commented 1 month ago

Could this be another duplicate of #16038, perhaps?

calixteman commented 1 month ago

Do you think that the wrong blue thing has the same cause as in #16038 ?

Snuffleupagus commented 1 month ago

Given that this seems to be using a tiling pattern with a /BBox that contains negative values, it might thus be related?

calixteman commented 1 month ago

I confirm it's a dupe of #16038.