See note at https://pymupdf.readthedocs.io/en/latest/page.html#Page.apply_redactions:
Text contained in a redaction rectangle will be physically removed from the page (assuming Document.save() with a suitable garbage option) and will no longer appear in e.g. text extractions or anywhere else. All redaction annotations will also be removed. Other annotations are unaffected.
I couldn’t find a simple reproducer to test that it is indeed a security issue, thus no test has been added for this change.
See note at https://pymupdf.readthedocs.io/en/latest/page.html#Page.apply_redactions:
> Text contained in a redaction rectangle will be physically removed from the page (assuming `Document.save()` with a **suitable garbage** option) and will no longer appear in e.g. text extractions or anywhere else. All redaction annotations will also be removed. Other annotations are unaffected.
I couldn’t find a simple reproducer to test that it is indeed a security issue, thus no test has been added for this change.