Four Ways to Hide Something, One Look
You have a PDF that is almost ready to send, but one part must not go with it: an account number, a home address, a client's name, a signature. There are four common ways to make it disappear. Cover it with a white box. Cover it with a black box. Crop the page so the part is outside. Or redact it.
On screen the result is the same every time: the information is gone. In the file, three of the four leave it exactly where it was. Every year there are news stories about court documents and reports where the "blacked out" names could be copied out with the mouse, and they are all the same mistake.
Why Covering Does Not Remove
A PDF page is a list of drawing instructions: put this text here in this font, draw this picture there, fill this rectangle with white. The viewer carries them out in order, so whatever is drawn later appears on top. A white or black box added in an editor is simply one more instruction at the end of the list. The text it covers is still in the list above it.
A PDF reader shows you the final picture. Selecting text, searching with Ctrl+F, copying, converting to Word and screen readers for blind users all work on the list. They find the text under the box without any effort, because for them the box is not in the way.
What We Found
We made a one-page test PDF with an account number on one line, an ordinary line under it, a filled-in form field and an author name in the file properties. Then we hid the account number in each of the four ways using the tools on this site, extracted the text of every result with a standard tool and looked inside the files.
| Method | On screen | Account number in the text | Form field value | Author name | File size |
|---|---|---|---|---|---|
| Original | Visible | Yes | Yes | Yes | 1.74 KB |
| White box (Whiteout) | Hidden | Yes | Yes | Yes | 1.87 KB |
| Black rectangle | Hidden | Yes | Yes | Yes | 1.87 KB |
| Crop | Outside the page edge | Yes | Yes | Yes | 1.78 KB |
| Redaction | Black box | No | Removed if boxed | Removed | 1.04 KB |
The file sizes tell the story. The white box and the black rectangle made the file larger, because something was added and nothing was taken away. The cropped file is almost the same size as the original. Only the redacted file is smaller, because only redaction removes anything.
Cropping is the most misleading of the four, because the part really is gone from view, even when printing. But a crop only changes the page's visible frame. The text extraction tool found the account number in the cropped file without any special settings, and removing the crop in any PDF editor brings everything back.
Whiteout and drawn rectangles are the right tools for what they are made for: hiding a typo before you write over it, or covering a field that should look empty on a printout. They are not a way to keep information private. The PDF Editor page says so, and so does every good editor.
What a Real Redaction Removes
A redaction rewrites the page itself. With Redact PDF you mark the areas in the browser, by dragging boxes or clicking a line of text, and the file is then processed on our server, where the content under the boxes is taken out of the PDF:
- Text that touches a box is deleted, including invisible text that OCR adds to scans.
- Pictures and scanned pages have the pixels under the box replaced inside the picture itself, not covered.
- Lines and shapes that lie completely under a box are deleted. A line that is only partly under a box stays, hidden under the black.
- Comments, links and form fields that touch a box are removed as a whole, because their text would otherwise survive on top of the black.
In our test the account number and the value of a boxed form field could not be found anywhere in the redacted file, while the line under it stayed as normal, searchable text. In a separate test with a digitally signed file, the name in the signature's certificate was gone as well. With Also remove hidden data, which is on by default, the author, title, attachments and scripts are removed too. The file is deleted from the server within an hour.
You can also type words or numbers to find, such as a name or an account number, and they are blacked out everywhere they appear in the text. That only works for pages that contain real text; on a scan without a text layer, draw the boxes yourself.
Signatures Need Special Care
Signatures appear in a PDF in three forms, and only two of them can be found automatically. A digital signature field with a certificate and a signature drawn with a pen tool are recognised by Black out signatures in Redact PDF. A signature that is part of the page itself, because the paper was scanned or the signature was added as a picture, looks like any other ink and has to be boxed by hand.
Note that a digitally signed PDF is no longer validly signed after any change, redaction included. That is how digital signatures are supposed to work: they prove that nothing was changed. If the recipient needs a signed and redacted document, it has to be signed again after redaction.
Before You Send It
- Open the redacted copy and try to select the hidden part with the mouse.
- Press Ctrl+F and search for a word that was under a box.
- Look at the file properties for an author or title you did not mean to share.
- Keep the original, but send only the redacted copy. A redaction cannot be undone, which is the point of it.
Two tools are often mistaken for redaction. Flatten PDF makes form fields part of the page so the answers cannot be edited, but the answers stay readable text. Protect PDF stops people without the password from opening or editing the file, but anyone who has the password sees everything.