-
Notifications
You must be signed in to change notification settings - Fork 664
Description
Description of the bug
I'm adding a redaction region to a part of the PDF, but after calling apply_redactions(), one side of the entire page goes missing (opened in macOS Preview app or Safari).
Further inspection reveals that the text is not missing, as it is selectable and can be copied out properly. It is either the text has been masked / hidden, but I could not find out how to check further (sorry, my limited knowledge on PDF structure).
The media, crop, art, bleed, trim boxes all looks fine before and after the redactions. In fact, I'm trying to check if there's other paths, objects that may be causing it but there's nothing.
Note that I'm not able to share the actual PDF but it was generated from Puppeteer / Chromium (PDF ver 1.7).
Thanks in advance for looking into this.
How to reproduce the bug
- Generate PDF from Chromium / Puppeteer
- Add redaction of any size eg.
(0,0,1,1)and callapply_redactions() - Open the PDF in Preview App.
PyMuPDF version
1.24.9
Operating system
MacOS
Python version
3.9
