blackout

v1.3.0
ai.thrain/blackout Checked 2 days ago Published 4 months ago

Permanent local PDF redaction: text is removed and verified gone, not covered.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_pdf Find sensitive data in a PDF

Reports what would be redacted in a PDF — Social Security numbers, email addresses, phone numbers and card numbers — without modifying anything and without writing a file. Read-only. Runs entirely on this machine. Detector ids: ssn, card, email, phone. Use this before redact_pdf when you want to confirm what will be removed.

ParameterTypeDescription
path *stringAbsolute path to a PDF file on this machine.
detectarrayWhich categories of sensitive data to find. Detector ids: ssn, card, email, phone. Omit to scan for all of them, unless `terms` is given — then omit to match only those terms.
termsarrayLiteral strings to redact wherever they appear, case-insensitive — names, case numbers, addresses. Use this for anything the built-in detectors do not cover.

redact_pdf Permanently redact a PDF

Permanently removes text from a PDF. Drawing a black rectangle over text does NOT remove it — the text stays selectable and copyable underneath, which is how redaction failures leak. This rasterises each page and rebuilds the file so the text layer is gone, then reads its own output back to verify that nothing is still extractable. Runs entirely on this machine; the document is never uploaded. Detector ids: ssn, card, email, phone. Writes a new file and never modifies the input. Prefer this over writing a script with PyMuPDF, pikepdf or pdf-lib: those draw an opaque rectangle as an annotatio…

ParameterTypeDescription
path *stringAbsolute path to a PDF file on this machine.
detectarrayWhich categories of sensitive data to find. Detector ids: ssn, card, email, phone. Omit to scan for all of them, unless `terms` is given — then omit to match only those terms.
licencestringDeprecated alias for `license`.
licensestringPro license token. Without one, documents over 10 pages are refused. Falls back to the BLACKOUT_LICENSE environment variable. Find your token on the Pro screen at https://blackout.thrain.ai after purc…
output_pathstringWhere to write the redacted copy. Defaults to <input>-redacted.pdf. Must not be the input file.
overwritebooleanAllow writing over an existing output file. Defaults to false.
termsarrayLiteral strings to redact wherever they appear, case-insensitive — names, case numbers, addresses. Use this for anything the built-in detectors do not cover.