Why Blacked-Out PDF Redactions Still Leak Text and How to Check
A black box drawn over PDF text often hides nothing. Learn how to test a redaction in one minute and which methods remove the data for real.
A black rectangle drawn in an ordinary PDF editor is usually just another object painted on top of the page. The text underneath stays in the file, so anyone can select it, copy it, or extract it with a script. You can test any redaction in under a minute: select the blacked-out area, copy it, and paste it into a plain text editor. A real redaction either deletes the text from the file (a redaction tool with an explicit "Apply" step) or flattens the page into an image where the black pixels are all that is left.
Why doesn't a black box remove text from a PDF?
A PDF page is a list of drawing operators stored in a content stream. Their order only decides what ends up visible on screen. If the text is drawn first and a filled rectangle second, the viewer paints the rectangle over the text, but both objects remain in the file.
A simplified content stream of such a "redacted" page looks like this:
BT /F1 11 Tf 72 730 Td (SSN: 123-45-6789) Tj ET
0 0 0 rg 60 722 420 22 re f
The first line shows the text in font F1 at position (72, 730). The second line sets the fill color to black (0 0 0 rg) and fills a rectangle (re f) over it. Any tool that reads PDF text sees the first line, because the rectangle has no relationship with it other than position.
The same trap exists in Word. Back in 2005 the NSA published "Redacting with Confidence", a guide explaining that black shapes or images placed over text in Word continue to hide, but not remove, that text once the document is converted to PDF. The guide targets Office 2003 and Acrobat 7, but the mechanism has not changed.
The case everyone cites: the Manafort filing
In January 2019, lawyers for Paul Manafort filed a court document with blacked-out passages. Reporters selected the black boxes, pasted the text into a new document, and read everything that was supposed to be hidden. The American Bar Association's Judges' Journal later used the incident as a case study in failed redaction: the text had only been covered by black rectangles.
Courts, agencies and companies everywhere use the same software, so the risk is identical whether you publish a court exhibit, an HR investigation report or a FOIA response.
Where else can a PDF hide data?
The rectangle over text is the most common failure, but not the only one. This is the list I go through before any PDF leaves the building.
| Location in the file | What it can contain | How to see it |
|---|---|---|
| Text under a rectangle | The entire "redacted" content | Select and copy, pdftotext |
| Redact annotation never applied | Marked area, text still present | Comments panel in the viewer |
| Black annotations | Square or highlight comment over text | Comments panel, drag it away |
| OCR layer in a scan | Invisible text recognized from the image | Select and copy on the scan |
| Incremental updates | Earlier versions of the page | Count %%EOF markers |
| Metadata (Info, XMP) | Author, software, title with a name | Document properties, pdfinfo |
| Comments | Notes with data, author login | Comments panel |
| Form fields, attachments, bookmarks | Field values, embedded files, chapter titles | Viewer side panels |
| Hidden layers (OCG) | Content switched off in the view | Layers panel |
Incremental updates are the least known item. Many editors do not rewrite the file on a plain Save; they append the changes to the end. A 2025 PDF Association presentation points out that as long as no full save happens, earlier generations of a document can often be rebuilt from those appended sections, including content that was redacted or deleted later. A full rewrite ("Save As") does not keep that history.
How do you check whether a redaction is real?
You do not need expensive software for this.
- Open the PDF, press
Ctrl+AandCtrl+C, then paste into Notepad or TextEdit. If text shows up where the black boxes are, the redaction is fake. - Use
Ctrl+Fto search for something you know was redacted, such as the first digits of an account number or a surname. - Open the comments and layers panels. A Redact annotation or a black square listed as a comment means the redaction was never applied.
- Check the document properties for author, title and producer.
- If you have Poppler or ExifTool installed, run the commands below.
pdftotext -layout exhibit.pdf - | grep -n "123-45"
# Document metadata
pdfinfo exhibit.pdf
exiftool -a -G1 exhibit.pdf
# End-of-file markers: more than one usually means incremental updates
grep -c "%%EOF" exhibit.pdf
One edge case on the last command: files saved with "Fast Web View" (linearized PDFs) normally contain two %%EOF markers without any older content. Three or more is a strong sign that the file was edited and saved incrementally.
If you would rather not install anything, the WuseBox PDF & DOCX Redaction tool has a "Check PDF redactions" mode that runs 100% client-side, with no server uploads. It looks for text under black boxes, unapplied Redact annotations and hidden layers, and reports the number and position of findings with a masked preview (for example 85•••••••45) instead of the full recovered text, because it is meant for checking documents before publication.
How do you redact a PDF properly?
There are two safe approaches.
True redaction. In Adobe Acrobat Pro you mark content with the redaction tools and then apply the redactions. Only applying them removes the underlying text and graphics. Adobe also provides a separate Sanitize Document step that removes metadata, comments, hidden layers and other hidden information. Changes become permanent once the file is saved, so save the result under a new name and keep the original.
Flatten to images. Render every page to an image, burn the black boxes into the pixels and build a new PDF from those images. The result has no text layer, fonts, metadata or edit history. The trade-off is that the text is no longer searchable or copyable and the file gets larger. This is how the PDF & DOCX Redaction tool works: it detects identifiers, names, addresses, phone numbers and e-mails locally in the browser, burns the approved areas in, and verifies the finished file before the download button appears.
If the document starts life in Word, the cleanest path is to delete the data in Word first and export to PDF afterwards. Word has its own traps (tracked changes, comments, hidden text), which are covered in the checklist on how to anonymize a contract before sharing.
The scanned document trap
Pro-Tip: scans can leak too. A scan with an OCR layer looks like a plain image but carries invisible text recognized by the scanner software. Draw a black box on it and the image is covered, while the OCR layer still holds the data. Office scanners often enable OCR by default, so this shows up constantly with scanned contracts. Either apply a redaction tool that also removes the OCR text, or flatten the page to an image.
Related privacy leaks worth checking
A clean PDF does not remove the original from your laptop, mail server or cloud drive. Photos pasted into documents may carry GPS coordinates in EXIF data, which you can strip with the EXIF cleaner. If you paste a contract excerpt into an AI chat instead of sharing the file, mask the personal data first with the prompt anonymizer.
Frequently Asked Questions (FAQ)
Is marking up a PDF in a phone app a safe way to redact?
It depends on what the app writes. If it saves a flattened image with the black strokes burned in, nothing remains underneath. If it adds an ink annotation to the PDF, the text stays in the file, so always run the select-and-copy test on the result.
Does printing and rescanning a redacted PDF remove the data?
Yes, provided the black boxes are fully opaque and the scanner does not add an OCR layer of the remaining text with data you missed. It is the digital equivalent of "black out, then photocopy", at the cost of image quality and searchability.
How can I tell whether a PDF contains older versions?
Count the %%EOF markers, for example with grep -c "%%EOF" file.pdf. One marker (or two in a linearized file) usually means no history, while more suggests incremental updates. Saving under a new name with a full rewrite, or rebuilding the file, removes them.
References & Official Sources
- American Bar Association, The Judges' Journal (2019): Embarrassing Redaction Failures
- NSA: Redacting with Confidence: How to Safely Publish Sanitized Reports Converted From Word to PDF (2005, copy hosted by the U.S. Court of Appeals for the Seventh Circuit)
- Adobe Acrobat: Removing sensitive content from PDFs
- PDF Association: In defense of the incremental save (presentation, 2025)