censor/Censor
1
37
Fork
You've already forked Censor
3

bug: incomplete redaction of text or some letters #158

Open
opened 2026年03月18日 16:00:06 +01:00 by mahlzahn · 0 comments

Description

Sometimes, text or some letters are not properly redacted

Examples for failing documents

How to reproduce with PyMuPDF

document = pymupdf.Document("tests/data/samples_artifex/cff_reuses_private_dict.pdf")
page = document[0]
page.add_redact_annot(page.cropbox)
page.apply_redactions(text=pymupdf.PDF_REDACT_TEXT_REMOVE)
page.get_text()

returns

'p\np\n'

Upstream issues

Impact

It seems to be a very rare issue, it was found in only 1 of 1,000 PDF document samples, see #110.

## Description Sometimes, text or some letters are not properly redacted ### Examples for failing documents - [samples_artifex/cff_reuses_private_dict.pdf](https://github.com/ArtifexSoftware/tests/blob/master/pdf/cff_reuses_private_dict.pdf) ### How to reproduce with PyMuPDF ```py document = pymupdf.Document("tests/data/samples_artifex/cff_reuses_private_dict.pdf") page = document[0] page.add_redact_annot(page.cropbox) page.apply_redactions(text=pymupdf.PDF_REDACT_TEXT_REMOVE) page.get_text() ``` returns ``` 'p\np\n' ``` ## Upstream issues - https://github.com/pymupdf/PyMuPDF/issues/4944 ## Impact It seems to be a very rare issue, it was found in only 1 of 1,000 PDF document samples, see #110.
mahlzahn changed title from (削除) bug: text or some letters not redacted for some file (削除ここまで) to bug: incomplete redaction of text or some letters 2026年03月18日 17:13:37 +01:00
Sign in to join this conversation.
No Branch/Tag specified
main
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
censor/Censor#158
Reference in a new issue
censor/Censor
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?