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

Prevent empty redaction rectangles #3589

Closed JorjMcKie closed 1 week ago

JorjMcKie commented 1 week ago

White-space OverlayText is treated as if entirely omitted. If the redaction rectangle width is too small to reasonably show text, insertion attempts for replacing text are silently ignored.

A minor correction to method "remove_rotation" ignores invalid hyperlinks during annotation / hyperlink rectangle restoration.