A black box on a PDF is a drawing, and the text is still underneath it
This one ends up in the news every few years so it is worth saying clearly.
When you draw a black rectangle over a name in a PDF, or use a highlighter set to black, you added a shape to the page. That is all. The text is still in the file, right underneath it. Anyone can select it, copy it, or run text extraction and read every word you thought you removed. Same with a coloured box in Word before you export.
So the test is ten seconds. Try to select the text under your own redaction. If you can, it is not redacted.
What actually removes it
What actually removes it is taking the content out, not covering it. Two ways that work:
- Flatten the pages to images, black out the area in an image editor, rebuild a PDF from the images. The text does not exist in the file anymore, you lose selectable text and search, that is the price.
- Don't redact at all, just split out the two pages that are needed instead of sending the twelve page statement. Removing a page removes everything on it, no judgement needed.
The PDF is not the only file that talks
A phone photo carries GPS coordinates accurate to a few metres unless location is off for the camera, plus date and time and phone model.
A docx names the author and last modified by, and keeps tracked changes and comments until you accept or reject them. Spreadsheets keep hidden rows, hidden is not absent.
A zip with a password still shows every file name and size to whoever opens it. So a file called appraisal-anita-2026.pdf inside has already told the story. And never send the password in the same message as the file, make sure of this okay, that protects nothing.
I wrote the long version as a guide and built the metadata remover on the site, so ya i'm biased. It shows what a photo carries before it strips anything and runs in your browser, nothing is uploaded.
The order I follow is reduce, redact properly, flatten, strip metadata, encrypt if needed, send password by another route.
Whole thing is here https://theomnikit.com/guides/what-a-file-gives-away?utm_source=devto&utm_medium=post&utm_campaign=devto-black-box-pdf
Anyone been bitten by a redaction that was not one?
Comments
No comments yet. Start the discussion.