PDF MetaClean

Strip sensitive metadata from PDF files before you share them — author, software, timestamps. One command, verified.

Python CLI Privacy Open Source MIT License

Audit Hidden Metadata

A PDF exported from business software can silently carry your name, company, and editing timestamps. See exactly what leaks.

Byte-Level Removal

Strips the PDF /Info trailer entry after writing, so pypdf can't silently re-inject /Producer on the next save.

Clean Copy or In-Place

--clean writes a sanitized report_clean.pdf; --in-place overwrites the original after cleaning.

Built-in Self-Check

--self-check creates a tagged PDF and verifies on your own machine that no metadata survives.

Verbose Mode

List every metadata field the file carries before you decide what to strip.

Local & Private

Everything runs on your machine. Your PDF never leaves your computer.

Quick Start

  1. pip install -r requirements.txt
  2. Inspect what's hidden: python -m tools.pdf-metaclean report.pdf --verbose
  3. Write a sanitized copy: python -m tools.pdf-metaclean report.pdf --clean
  4. Overwrite the original: python -m tools.pdf-metaclean report.pdf --in-place
  5. Verify it works on your machine: python -m tools.pdf-metaclean --self-check