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

feat: "secure" export to PDF with rasterized images #111

Open
opened 2026年03月03日 19:11:15 +01:00 by mahlzahn · 0 comments

Description

Although, rasterized export is not and won't be Censor's core functionality, it maybe added as paranoid saving option without the issues of #5.

This export option should also remove all metadata (Edit: Censor does this anyhow since !140 in v0.5.0).

Implementation

  • UI: add a menu entry Save Rasterized As... (enabled even without added redactions)
  • Backend:
    1. apply redactions (PyMuPDF)
    2. extract page pixmaps
    3. create new document and add PNG images at certain resolution (e.g., 300 DPI) as pages
    4. save this document

Workaround

  1. Use Censor and save normally
  2. Use ghostscript to convert document
## Description Although, rasterized export is not and won't be Censor's core functionality, it maybe added as paranoid saving option without the issues of #5. This export option should also remove all metadata (Edit: Censor does this anyhow since !140 in v0.5.0). ## Implementation - UI: add a menu entry `Save Rasterized As...` (enabled even without added redactions) - Backend: 1. apply redactions (PyMuPDF) 2. extract page pixmaps 3. create new document and add PNG images at certain resolution (e.g., 300 DPI) as pages 4. save this document ## Workaround 1. Use Censor and save normally 2. Use ghostscript to convert document
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#111
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?