ROKH
← All recipes

Black out personal data in PDFs for real

parts checkedwith an AI agent

What you get

Names, phone numbers, ID and card numbers are found automatically and removed from the PDF's content, not just covered with a black box that can be copied out.

Why this combination

Many leaks happen because a black rectangle hides text that is still there; Microsoft's detector plus a PDF library that truly deletes text fixes that.

Parts

presidio GitHubFinds and hides personal data in text: names, phones, e-mails, addresses (formerly microsoft/presidio).licence: MIT12,068 starslast update: November 24, 2026
PyMuPDF GitHubFast PDF reading and editing, including true redaction of text.licence: AGPL-3.011,202 starslast update: November 26, 2026OpenSSF Scorecard: 5.2/10

What was checked

On November 26, 2026 a script checked all 2 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.

Limits, honestly

Review every page before sending; PyMuPDF is AGPL, which is fine for internal use.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Black out personal data in PDFs for real.
What I want to get: Names, phone numbers, ID and card numbers are found automatically and removed from the PDF's content, not just covered with a black box that can be copied out.

Use these open projects and data:
- presidio: https://github.com/data-privacy-stack/presidio (MIT)
- PyMuPDF: https://github.com/pymupdf/PyMuPDF (AGPL-3.0)

Why this combination: Many leaks happen because a black rectangle hides text that is still there; Microsoft's detector plus a PDF library that truly deletes text fixes that.
Known limits: Review every page before sending; PyMuPDF is AGPL, which is fine for internal use.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Law office and contractsHR and hiringAccounting and finance