PDF Redaction Done Right: Why Drawing a Black Box Is Not Redaction

Here is a test you can run on any document in ten seconds. Open a PDF that appears to have passages hidden under black rectangles. Click and drag across one of those rectangles, copy, and paste into a text editor. If the hidden words appear, the document was never redacted at all. It was decorated. The text is still in the file, fully intact, wearing a black box as a hat — and anyone who receives the file can take the hat off.

This is not a rare or exotic failure. It is the single most common way sensitive information leaks from PDFs, and it has embarrassed organisations of every size because the document looks redacted to the human eye while remaining completely open to the machine. Real redaction is a different operation entirely: it removes the underlying data from the file, rather than covering its picture. This guide explains what actually lives inside a PDF besides the visible page, why drawing over text fails, the other hiding places people forget, and a safe workflow with a verification step that catches failure before your readers do.

Why a black box drawn in a PDF removes nothing

A PDF page is not a single flat image. It is a set of layered instructions: text objects that draw characters, image objects, vector shapes, and annotation objects that sit above the page content. When you open a PDF in an editor and draw a black rectangle over a paragraph, you are almost always adding one more object on top of the stack — a filled shape or an annotation. The text object underneath is untouched. It still contains every character, in order, exactly as authored.

That is why the copy-and-paste test works. Selection and copying read the text objects, not the picture of the page, and the rectangle does not interrupt them. The same is true of search: a reader can search for a name that appears to be blacked out and the reader will find it and highlight the very box that was supposed to hide it. Even the method of "covering" varies in how badly it fails. A rectangle drawn in a basic editor is an annotation that some tools let any recipient delete outright, revealing the page in its original state. Highlighting text in black, changing the font colour to white, or placing an image of a black bar over the page all share the same flaw: the data was never removed, only visually obscured in one particular rendering. Our overview of PDF security tips covers the wider habits that prevent this class of mistake; redaction is where the stakes are highest.

What true redaction has to do

Genuine redaction is destructive by design, and that is the point. A proper redaction tool does three things. First, it deletes the selected characters, words or image regions from the underlying content itself — the text objects are rewritten without the removed material, not merely covered. Second, it removes or rebuilds anything derived from that material, so the information cannot be recovered from another structure in the file. Third, the document is effectively re-distilled: the file is rewritten in a clean form, so remnants of the original content are not carried along in unused objects, incremental-update leftovers or undo data. A useful way to judge any tool or workflow is to ask whether, after redaction, the removed text exists anywhere in the file's bytes. If the answer is "it exists but you can't see it", the workflow has failed.

This is also why redaction must be the last step in a document's life, performed on a copy. Once data is properly removed, it is gone; there is no un-redact. Keep the original in your private records, redact a duplicate, and distribute only the duplicate. Reversing that order — redacting the only copy, or distributing the original by mistake — accounts for a second, quieter class of accidents that no software can prevent.

The other hiding places: metadata, layers and attachments

Even a correctly redacted page can leak through the parts of the PDF nobody looks at. Document metadata is the most common: title, author, subject and keyword fields routinely contain the very names, case references or project codenames that the visible pages were scrubbed of, along with the names of people who edited the file. Our guide to PDF metadata shows where these fields live and how to inspect them; for a redacted release, inspecting and cleaning metadata is not optional housekeeping, it is part of the redaction.

Layers are a second trap. PDFs can contain optional content groups — layers that can be toggled on and off — and material placed on a hidden layer is still in the file, recoverable by anyone who toggles it or extracts the content. Comments, markups and tracked-change-style annotations form a third: an annotation may quote the passage it comments on, and annotation content is stored as text. Embedded files are a fourth: a PDF can carry complete attachments inside it, including the original spreadsheet, the unredacted source document, or data files whose contents nobody reviewed. Page thumbnails and leftover preview images can preserve a small picture of the original page. Finally, a document assembled from other documents can inherit all of the above from its sources — merging files, as described in our guide to merging PDFs, combines their hidden content as faithfully as their visible pages. A redaction process that only examines the printed appearance of each page will miss every one of these.

The failure pattern that keeps repeating

Describe the recurring public failures in general terms and a pattern emerges with almost no variation. An organisation must release a document — a court filing, an investigative report, a statement, a disclosure — that contains information it is entitled or obliged to withhold: names of minors or witnesses, financial figures, personal contact details, commercially sensitive terms. Under time pressure, someone opens the file, draws black boxes over the sensitive passages using whatever editor is at hand, saves, and releases it. The document looks correct in every preview. Hours or days later, a journalist, a lawyer on the other side, or an ordinary reader selects the text, copies it, and publishes what was underneath. The organisation then has to explain not only the underlying information but why its "redaction" was a visual effect.

Notice what the pattern does not involve. No hacking, no forensic expertise, no obscure software — the recovery method is copy and paste, available to every recipient by design. Nor does the pattern require malice in the original act; it requires only the plausible assumption that a PDF behaves like paper, where ink over ink really does hide what is beneath. On paper, covering works because the covering and the content are the same physical layer. In a PDF they are not, and the entire failure lives in that difference. Any workflow, checklist or training that does not begin from this fact will reproduce the pattern with new names and new dates.

A safe redaction workflow

  • Work on a copy. Keep the original in private storage; the redacted file is a separate, clearly named release version.
  • Decide what must be removed before opening any tool: the specific names, figures, addresses and identifiers, including their appearances in headers, footers, tables and captions, not just body text.
  • Use a tool with a dedicated redaction function — one that states it removes the underlying content — rather than drawing shapes, highlighting or covering with images. Apply the redactions, then let the tool apply and rewrite the file; in many tools, marking and applying are two separate steps, and marks alone change nothing.
  • Sanitise the whole document as part of the same pass: inspect and clean the metadata, remove comments and annotations that are not part of the release, check for layers and delete or flatten content that should not travel, and list embedded attachments, removing any that were not deliberately reviewed.
  • Consider whether images need redaction too. Faces, signatures, screens showing other data and photographs of documents within documents are content, and proper tools can remove regions of images, not just text. Where a signature must be withheld, remember that a placed signature image is an object like any other; our explainer on digital vs electronic signatures clarifies what those objects are.
  • Save the result as the release file, ideally by exporting or re-distilling a clean copy, so no incremental-save history of the original content travels with it. If the release must also be access-controlled, apply protection afterwards, following password-protecting a PDF — protection after redaction, never instead of it.

Verify before you release: the step that catches everything

Verification is not a courtesy check; it is the control that makes the workflow trustworthy, and it uses the same techniques an adversary would. Open the final release file — the exact file you intend to send, not the working copy — and do the following. Select all text on each page, copy it, and paste it into a plain text editor; read what comes out, hunting for anything that should have been removed. Search the file for each sensitive term on your list: names, figures, reference numbers, distinctive phrases. A properly redacted file returns no results for material that was removed from the text; a result hiding under a black box is proof the box was only drawn. Open the document properties and read the metadata fields as a stranger would. Check the attachments panel and the layers panel, if your reader shows them, and confirm both contain only what you intend to release. Finally, zoom into each redacted region and confirm the visible result is clean and the surrounding text still reads correctly, because over-redaction that swallows half a sentence is its own kind of error.

If any check fails, the file goes back to the workflow, not out the door — and the failure is fixed in the process, by changing the tool or the step that allowed it, not by drawing a second box on top of the first. Redaction done right is unglamorous: remove the data, clean the hiding places, rewrite the file, then attack your own work before anyone else can. The black box is the last thing a reader should see, and it should be there because there is genuinely nothing underneath it.

Related guides

Frequently asked questions

Why doesn't drawing a black box over text redact a PDF?

Because the box is usually added as a separate object or annotation layered on top of the page content. The original text object underneath is untouched, so anyone can select, copy and search the hidden words, or in some cases simply delete the annotation. True redaction removes the underlying data itself.

What is the difference between redaction and covering text?

Covering changes only the visual appearance of the page in one rendering. Redaction permanently deletes the selected characters or image regions from the file's content, cleans related structures such as metadata and annotations, and rewrites the file so the removed information cannot be recovered from it.

Can redacted information leak through other parts of a PDF?

Yes. Metadata fields can contain the very names or references removed from the pages. Hidden layers, comments and annotations, embedded file attachments and leftover thumbnails can also carry the original content. A complete redaction process inspects and cleans all of these, not just the visible pages.

How do I verify that a redaction worked?

Open the final release file and attack it yourself: select and copy the text around each redaction and paste it into a text editor, search for every sensitive term on your list, read the document metadata, and check the attachments and layers panels. If a removed term can be found, copied or searched, the redaction has failed.

Should I password-protect a redacted PDF instead of redacting it?

No. Password protection controls who can open a file; it does not remove information from it, and anyone who legitimately receives and opens the file could still extract badly redacted content. Redact first to remove the data, then add protection afterwards if access control is also needed.

Private by design: SwiftPDF tools run entirely in your browser — your files never leave your device.