pymupdf / PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
https://pymupdf.readthedocs.io
GNU Affero General Public License v3.0
4.49k stars 443 forks source link

apply_redactions moves graphics #3611

Closed BeSaad closed 5 days ago

BeSaad commented 6 days ago

Description of the bug

Look into this pdf page

Screenshot 2024-06-24 at 22 54 11

When I apply redaction using page.apply_redactions() (random rectangle) I end up with this

Screenshot 2024-06-24 at 22 54 24

The grey rectangle is moved to the bottom left of the page (but the white text "Super lib..." remains there)

So I guess Its somehow similar to the issue about text being moved after redaction

How to reproduce the bug

here the pdf file to test issue.pdf

(the pdf is exported from overleaf/latex)

PyMuPDF version

1.24.5

Operating system

MacOS

Python version

3.12

JorjMcKie commented 5 days ago

Fixed in version 1.24.6.