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

certain PDFs with an image layered below a mask layered below text, ignore the mask #4127

Open
caribet42 opened this issue Mar 9, 2024 · 4 comments
Labels

Comments

@caribet42
Copy link

caribet42 commented Mar 9, 2024

SumatraPDF version

  • Version 3.5.2

Describe the bug
I have received a couple of PDFs which render correctly in Adobe, Foxit, Brave/Chrome, etc.
If Sumatra, they don't.
Each problem page has an image which extends over much of the page and below much of the text, but when rendered correctly that image should be masked/clipped so that most of the image does not show.
In Sumatra, it incorrectly shows the whole image.
The fault survives compression by ilovepdf.com

To Reproduce
Steps to reproduce the behavior:

  1. Open attached PDF, go to page 2 or page 7
  2. Page 2 is best - the text is very hard to read because of the image beneath the text

Expected behavior
Open in Adobe or Foxit or Chrome. Look at same page. Not the visual difference.

File that reproduces the problem
The prophecies of the professor_compressed.pdf

Screenshots
If applicable, add screenshots to help explain your problem.
PDF - wrong - Sumatra
PDF - OK - Chrome

Additional context
Add any other context about the problem here.

@kjk
Copy link
Member

kjk commented Mar 10, 2024

verified happens on master
probably same as #4064

@caribet42
Copy link
Author

there is a change in behaviour between released version v3.5.2 and pre-release v3.6.16007.
Unfortunately it is wrong.
Specifically it addressed the matter of the fade mask, but the mask is inverted.
The capture from Adobe (above) shows the correct view, with a mask reveal at the bottom of the page and clear area (showing text) at the top. I have some other files where the mask reveals L-to-R and again the reveal is inverted in 3.6.16007

Attached screenshot of same file referred to above, but captured in 3.6.16007
Screenshot 2024-04-06 114606

@kjk kjk added the mupdf label Apr 6, 2024
@kjk
Copy link
Member

kjk commented Apr 6, 2024

the best thing to do is to report this to mupdf developers: https://bugs.ghostscript.com/

@GitHubRulesOK
Copy link
Collaborator

image

for convenience this should be single page with similar construct ?

Page2mupdf.pdf

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

No branches or pull requests

3 participants