Redact a PDF properly before you share it

You have a PDF with a name, an address, or a dollar figure you must not reveal. You grab the highlighter, drag a black box over it, save, and send. The secret is hidden — on the screen. Underneath, it is often still there, patiently waiting to be selected, copied, and pasted into plain sight.

This is the single most common and most dangerous mistake in document sharing. This article explains why "black box" redaction fails and what real redaction actually does.

Why drawing a black box is not redaction

A PDF stores content as objects: text characters with positions, images, vector shapes. When you draw a black rectangle on top of a sentence, you have added one more object — a black shape — layered above the original text. The original text object is untouched.

That means:

The information was concealed, not deleted. Concealment is what you see; deletion is what protects you.

What real redaction does

Proper redaction removes the content from the file. A correct redaction tool:

  1. Identifies the text or image region to be removed.
  2. Deletes those underlying objects from the content stream.
  3. Replaces the area with a permanent, opaque mark (commonly black) so the layout still reads naturally.
  4. Sanitises associated metadata, comments, and hidden layers that might reference the removed content.

After real redaction, there is nothing left to select or copy. The secret is gone at the byte level, not just painted over.

The ToUnicode trap

Even when text is "removed" by some naive tools, a related hazard lurks in the ToUnicode mappings and structure tree: references to the deleted text can persist, letting specialised recovery pull fragments back. Thorough redaction scrubs these too. The standard rule is simple — if the content can be extracted by any supported mechanism, the redaction was incomplete.

How to check your own redaction

Before sending a "redacted" file, verify it the way an adversary would:

A comparison table

MethodUnderlying text removed?Safe to share?
Black highlight boxNoNo
Draw rectangle over textNoNo
Proper redaction toolYesYes
Sanitise + redactYes, plus metadataYes

Read-only viewers and redaction

A read-only PDF viewer deliberately will not modify your source file — which means it is also not the tool for redaction, because redaction must delete content. Use a dedicated redaction or sanitise step on a copy, confirm it with the checks above, then share the cleaned file. Keep your original untouched. (For more on what opening a file can and cannot do to it, see security risks when opening PDFs.)

Redaction in everyday workflows

The black-box mistake shows up most in HR, legal, and finance, where someone masks a client name or a salary and forwards the file, certain it is safe. It is not, because the masked string is still selectable underneath. The same trap catches redaction done in general editors that simply paint over text rather than expunging it. Whenever a document leaves your control — emailed, filed, or published — assume a recipient will test it. If you would be embarrassed by the hidden text surfacing, it was never redacted.

A safer sharing routine

Build a habit: redact on a copy, use a tool that deletes content (not one that draws over it), then verify by selecting and searching the result in a second reader. Only then share. Keep your original unredacted file in a safe place so you can regenerate the cleaned version if needed without re-masking by hand. This routine takes a minute and removes the single most common cause of accidental data leaks from PDFs.

Conclusion

Black boxes are decoration, not redaction. Real redaction deletes the underlying text and images — and scrubs the metadata that points to them — so nothing remains to be selected, copied, or searched. Always verify a redacted file by trying to recover the hidden content in another reader before you share it. Redact on a copy, keep your original intact, and never trust a mark you have not tested.

FlyPDF does this locally. Read-only by design: OCR, search, annotations and text export all run on your machine, and the source file is never rewritten.

Try FlyPDF free for 30 days

← Back to the blog