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

feat: customize redactions appearance #11

Open
opened 2025年12月01日 18:13:19 +01:00 by mahlzahn · 0 comments

Description

Currently, all redactions are marked with black, filled rectangles.

Implementation

PyMuPDF allows to add redaction annotations with

  • variable color (RGB values) or without filling (False)
  • cross-out style (✉)
  • text placed in the rectangle with font, size, alignment, color (maybe out of scope, here?)

For color choice in context menu: maybe propose

  • black
  • red
  • transparent
  • auto (determine color from underlying objects)
  • manual

First context menu mockup:
image

## Description Currently, all redactions are marked with black, filled rectangles. ## Implementation PyMuPDF allows to [add redaction annotations](https://pymupdf.readthedocs.io/en/latest/page.html#Page.add_redact_annot) with - [ ] variable color (RGB values) or without filling (`False`) - [ ] cross-out style (✉) - [ ] text placed in the rectangle with font, size, alignment, color (maybe out of scope, here?) For color choice in context menu: maybe propose - black - red - transparent - auto (determine color from underlying objects) - manual First context menu mockup: ![image](/attachments/3bf75be8-7d18-4bb5-b7cc-887048dd8d24)
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#11
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?