-
Notifications
You must be signed in to change notification settings - Fork 663
Closed
Labels
Fixed in next releasefix developedrelease schedule to be determinedrelease schedule to be determinedupstream bugbug outside this packagebug outside this package
Description
Description of the bug
Text removal from pdf with PyMuPDF
works good in python3.8 and PyMuPDF 1.20.2: Python bindings for the MuPDF 1.20.3 library
but if used python3.12 and PyMuPDF 1.23.25 - not all text is removed
How to reproduce the bug
`import fitz
pdf_doc = fitz.open('data/file.pdf')
page = pdf_doc.load_page(0)
for block in page.get_text("words"):
rect = fitz.Rect(block[:4])
page.add_redact_annot(rect)
page.apply_redactions()
pdf_doc.save('data/file_1.pdf')
pdf_doc.close()`
PyMuPDF version
1.23.25
Operating system
MacOS
Python version
3.12
Metadata
Metadata
Assignees
Labels
Fixed in next releasefix developedrelease schedule to be determinedrelease schedule to be determinedupstream bugbug outside this packagebug outside this package