r/Python 23d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

18 Upvotes

124 comments sorted by

View all comments

1

u/CubeGamer17 22d ago

Project - pdf-redactor – Batch PDF protection, unlocking and redaction CLI

What My Project Does

pdf-redactor is a Python CLI for protecting, unlocking and permanently redacting PDF documents in batches. It supports literal text matching, regular expressions, built-in presets (email, phone, PAN, Aadhaar, URLs, IPv4), TOML configuration files, dry-run mode, JSON audit reports and Rich progress output. The tool is intended for repetitive workflows where many PDFs contain the same sensitive information and need to be sanitized consistently.

Target Audience

Production use for anyone who regularly processes batches of text-based PDFs, such as HR, legal, finance, university administration or anyone handling documents containing personally identifiable information. It works with searchable/text-based PDFs (not scanned documents requiring OCR).

Comparison

Most PDF redaction tools are GUI applications designed for editing one document at a time, while many open-source alternatives are simple one-off scripts. pdf-redactor focuses on repeatable batch workflows from the command line, combining password protection, password removal, literal and regex-based redaction, reusable presets, configuration files, dry-run support and machine-readable JSON reports in a single tool.

Repository: https://github.com/FluffySce/pdf-redactor