Bug 707966

Summary: Applying redactions render Preview-created PDFs incorrectly
Product: MuPDF Reporter: Jorj <jorj.x.mckie>
Component: mupdfAssignee: Robin Watts <robin.watts>
Status: UNCONFIRMED ---    
Severity: normal CC: jamie.lemon, robin.watts
Priority: P2    
Version: unspecified   
Hardware: Macintosh   
OS: All   
Customer: Word Size: ---

Description Jorj 2024-08-21 12:53:04 UTC
PyMuPDF issue: https://github.com/pymupdf/PyMuPDF/issues/3751
Problem file: https://github.com/user-attachments/files/16644815/output.pdf
    (and others in that issue post)

Problem description:
When a PDF was created using the Mac app "Preview", any redaction applied on some page, will display the resulting page incorrectly under Preview and some other, mostly Mac-related applications (UPDF, Safari browser among them).
The same page is displayed correctly on Adobe Acrobat, MuPDF, SumatraPDF, evince (Linux), Chrome browser, Edge browser and most other PDF viewers.

Firefox browser (Linux and Windows) also display the page erroneously ... however:
When saving the PDF with the clean and pretty option (which inserts white space / line breaks between appearance commands), the page will be again shown correctly in Firefox again.
But Preview and other Mac apps will continue to exhibit the problem.

Overall, this problem starts occurring with MuPDF 1.24 - versions before this behave as expected.