Closed reggieag closed 2 months ago
My result looks like this which is perfectly as it should be. The evacuated space also contains no text anymore.
Weird, I guess it might be something with my local setup then... Do you have any recommendations on libraries to update? I'm using PyMuPDF==1.24.10
and PyMuPDFb==1.24.10
.
Oh, when I open the doc in chrome it's fine. The issue must be a bug in the mac preview
app.
Description of the bug
I'm adding a redact annot manually to the PDF to remove some strike-through text. When I apply the redaction, the PDF appearance is mutated incorrectly. A whole margin of text is removed from the document instead of just the text in the annotation.
Interestingly, only the appearance is incorrectly impacted. The text is still there.
Possibly related to https://github.com/pymupdf/PyMuPDF/issues/3376
How to reproduce the bug
example_pdf_before_redaction.pdf example_pdf_after_redaction.pdf
You can run the
example_pdf_before_redaction.pdf
through the below script onPyMuPdf==1.24.10
andPython==3.9.19
to reproduce the bug.pip freeze output
I'm running this locally on a mac.
PyMuPDF version
1.24.10
Operating system
MacOS
Python version
3.9