A black rectangle over a name looks like redaction. It is a drawing. The text underneath is still a text object in the file, still selectable, still searchable, and still extractable in about two seconds with copy and paste.
This is not an obscure bug. It has happened in court filings, in government releases and in company reports, usually discovered by a journalist who pressed Ctrl+A and pasted into a text editor.
Why it happens
A PDF does not have layers in the Photoshop sense, but it does separate content from appearance. The page is a list of objects: text runs, images, vector shapes. A black rectangle is one more object, drawn after the text, covering it visually.
Nothing in that arrangement removes the text. It just puts something on top, the way a sticker on a page does not delete the page.
| What people do | What it removes |
|---|---|
| Draw a black rectangle | Nothing |
| Highlight in black | Nothing |
| Add a white text box on top | Nothing |
| Crop the page in a viewer | Sometimes, if it re-renders |
| Print to PDF after covering | Usually, if it flattens |
| Delete the text object | The actual text |
The third row is the sneaky one: a white box looks like an empty space on screen and behaves exactly like the black rectangle.
What real redaction means
Proper redaction replaces the content. Either the text is removed from the file, or the page is converted into an image in which the pixels no longer exist, or a dedicated tool rewrites the page without the sensitive run.
The cheap version anyone can do: take the page out as an image. If you export the PDF to JPG or print it to a new PDF with “flatten”, the result is pixels. The text is gone because there is no text. That is also why the file becomes larger and less searchable — a trade worth making for a document that must be safe.
The PDF to JPG tool does the rasterising in the browser, and image to PDF turns the result back into a document if you need one.
The metadata is a second leak
Even a properly redacted file can carry a history: author, company, the software used, the date it was last edited, sometimes the original file name. A document that says “redacted” in the body and “draft_v7_final_JD.pdf” in the properties has told you something.
The PDF metadata remover clears the document properties and the XMP block. It is a separate job from redaction, and both are needed before a sensitive document goes out.
The five-second test
Before you send a file you have “blanked out”:
- Open it in a viewer and press
Ctrl+A, thenCtrl+C. - Paste into a plain text editor.
- Search for the thing you hid.
If it appears, the rectangle was a sticker. If the text is gone, the redaction was real — and you can stop worrying about that particular leak.
Redaction is deletion wearing a disguise. If you only did the disguise, the file knows.
Hero photo: Whiteboard Markers, CC0, via Openverse (StockSnap).
