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

feat: select redactions via search for text or regex #2

Open
opened 2025年12月01日 16:31:07 +01:00 by mahlzahn · 0 comments

Description

It would be nice to be able to easily delete all occurrences of a word to be redacted, possibly even with regular expressions.

Implementation

Use PyMuPDF’s text extraction. See example of usage.

Pay attention to redaction of text in

  • metadata (shouldn't be an issue as long it is sanitized away when saving)
  • text in annotations
  • text in widgets
  • links (should probably removed fully?)
  • PDF element IDs
  • text in drawings?

Maybe nice additional features

  • Support for regular expressions
  • Pre-defined regular expressions for mail addresses, telephone numbers, URLs
## Description It would be nice to be able to easily delete all occurrences of a word to be redacted, possibly even with regular expressions. ## Implementation Use PyMuPDF’s text extraction. See [example of usage](https://github.com/HaidanP/PDF-Redactor). Pay attention to redaction of text in - [ ] metadata (shouldn't be an issue as long it is sanitized away when saving) - [ ] text in annotations - [ ] text in widgets - [ ] links (should probably removed fully?) - [ ] PDF element IDs - [ ] text in drawings? Maybe nice additional features - [ ] Support for regular expressions - [ ] Pre-defined regular expressions for mail addresses, telephone numbers, URLs
mahlzahn changed title from (削除) feat: select boxes via search for text or regex (削除ここまで) to feat: select redactions via search for text or regex 2025年12月02日 18:59:41 +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#2
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?