Black Boxes Are Not Redaction: How to Actually Remove Sensitive Text From a PDF

PrivacyAugust 15, 2026·9 min read

Every year, somewhere in the world, a court filing or a government report is published with names blacked out — and within hours somebody copies the text straight out of the file and reads them. The mistake is always the same, it is always made in good faith, and it takes about four seconds to undo.

Why the black rectangle fails

A PDF page is a stack of drawing instructions, not a picture. The text lives as its own objects: characters, coordinates, font references. When you draw a filled rectangle over a name, you add one more instruction to the stack: paint this area black. It is painted last, so it appears on top.

Nothing was deleted. The name is still there, at the same coordinates, in the same font. And so:

The same applies to highlighter tools set to black, to white boxes over white pages, and — this one surprises people — to cropping. Cropping a page changes the visible window; the pixels and text outside it are usually still in the file, and resetting the crop brings them back.

The rule: if you can still select it, you have not redacted it. Covering is a visual effect. Redaction is deletion.

Seven places sensitive data hides in a PDF

Text under a box is the famous failure, but a document leaks in more ways than one. Before releasing a file, consider all of these:

  1. The text layer — the words themselves, including anything behind a covering shape.
  2. Metadata — author name, company, title, keywords, the software used, creation and modification timestamps. Frequently a real person's full name and internal file path.
  3. Annotations and comments — review notes, sticky comments, and the names of whoever wrote them. Often invisible in the default view.
  4. Form fields — a filled field can retain its value even when the display looks blank, and field names themselves can be revealing.
  5. Cropped or covered images — the full original image usually remains embedded; only the display area changed.
  6. Attachments, layers and scripts — PDFs can carry embedded files, hidden optional-content layers, and JavaScript.
  7. Revision history — PDFs support incremental saving, so an edited file can contain earlier versions of pages appended one after another.

A workflow that actually removes information

Step 1 — Redact, do not decorate

Use a tool that deletes the underlying content rather than painting over it. PDFMax's redaction tool targets the content itself: mark the areas or search for the terms to remove, and the text objects go away rather than being hidden.

Step 2 — Flatten the document

Flattening merges annotations, form fields and layers into the static page content. It is not redaction on its own, but it eliminates a whole category of "invisible until you look" data — comment threads, unfilled fields, alternate layers — and makes the file behave predictably in every viewer.

Step 3 — Strip the metadata

Open the metadata editor and clear author, title, subject, keywords and producer fields. This costs ten seconds and closes the single most common accidental disclosure in published documents.

Step 4 — Sanitise

Sanitising removes embedded JavaScript, embedded files and other active content. A document intended for the public has no business carrying scripts, and recipients' security filters will thank you.

Step 5 — Verify before you send

This is the step everyone skips, and it is the only one that proves anything. Take the finished file — not the original — and:

The nuclear option: rasterise

When a document is highly sensitive and you want certainty rather than a checklist, remove the possibility of a text layer altogether:

  1. Redact as above.
  2. Convert the PDF to images, then rebuild a PDF from those images.
  3. If the result still needs to be searchable, run OCR on the rebuilt file — the new text layer is generated from the visible pixels only, so anything you removed cannot reappear.

The trade-offs are real: the file gets larger, the text is no longer crisp vector type, and accessibility suffers unless you OCR afterwards. For most documents this is overkill. For the ones where a mistake ends up in a newspaper, it is cheap insurance.

Common mistakes, in one place

What people doWhy it failsDo this instead
Black rectangle over textText objects stay in the fileRedact the content
Highlighter set to blackAnnotation on top of live textRedact, then flatten
Cropping the sensitive area awayContent outside the crop box is retainedDelete the content, or rasterise
Printing to PDF from the covered fileSometimes works, sometimes preserves text — unpredictableRedact properly and verify
Password-protecting the fileAnyone with the password sees everythingRemove the data, then protect if needed
Redacting, then emailing the original by mistakeHuman error, and the most common of allRename the clean file clearly, delete the draft

Ready to do it properly? Redact PDF · Flatten · Edit metadata · Sanitise — free, no account, and on PDFMax many operations run inside your browser, so a confidential document does not have to be uploaded anywhere at all.