A small local tool that redacts Bcc and masks email usernames in PDFs while keeping the domain.
Examples:
j.bloggs@example.orgbecomes[redacted]@example.orgBcc: alice@example.com, bob@example.combecomesBcc: [redacted]and any wrapped continuation lines are removed
This keeps documents readable while removing personal identifiers.
- Your PDFs stay on your computer.
- Nothing is uploaded anywhere.
- The tool reads PDFs from the
infolder and writes new PDFs to theoutfolder.
- Windows 10 or Windows 11
- Python 3.10+ installed
If you do not have Python installed:
- Go to the official Python site and install it.
- During install, tick "Add Python to PATH".
- Put your PDFs into the
infolder. - Double click
RUN.bat. - When asked "Edit settings?", type
yif you want to change defaults. - Get the redacted PDFs from the
outfolder.
Some Windows setups flash a window and close, or block batch files. No problem, you can run ReasonableRedactor manually.
-
Open Command Prompt:
- Press the Windows key
- Type
cmd - Press Enter
-
Go to the folder where you extracted this tool. Example: # ReasonableRedactor
A small local tool that redacts Bcc and masks email usernames in PDFs while keeping the domain.
Examples:
j.bloggs@example.orgbecomes[redacted]@example.orgBcc: alice@example.com, bob@example.combecomesBcc: [redacted]and any wrapped continuation lines are removed
This keeps documents readable while removing personal identifiers.
- Your PDFs stay on your computer.
- Nothing is uploaded anywhere.
- The tool reads PDFs from the
infolder and writes new PDFs to theoutfolder.
- Windows 10 or Windows 11
- Python 3.10+ installed
If you do not have Python installed:
- Go to the official Python site and install it.
- During install, tick "Add Python to PATH".
- Put your PDFs into the
infolder. - Double click
RUN.bat. - When asked "Edit settings?", type
yif you want to change defaults. - Get the redacted PDFs from the
outfolder.
Some Windows setups flash a window and close, or block batch files. No problem, you can run ReasonableRedactor manually.
-
Open Command Prompt:
- Press the Windows key
- Type
cmd - Press Enter
-
Go to the folder where you extracted this tool. Example: cd /d "C:\Tools\ReasonableRedactor"
-
Install requirements: py -m pip install -r requirements.txt
-
Run: py src\reasonableredactor.py
If your computer is already set up to run Python files, you can also try opening:
src\reasonableredactor.py
If it opens in a text editor or does nothing, use the Command Prompt method above.
When you run the tool, it asks if you want to edit settings.
You can choose:
- Clean style (recommended), it blends into the page with no big black bars
- Blackout style, it uses black boxes with white replacement text
You can also choose:
- Mask all email addresses (recommended for publishing PDFs)
- Or mask only a personal list
You can keep certain addresses visible (optional):
- Keep emails, example:
contact@example.org - Keep domains, example:
example.org
Your settings are saved into config.json.
- This performs real PDF redactions using PyMuPDF redaction annotations and applies them.
- Some PDFs contain text as images. In that case, text masking may not catch everything.