How to redact a PDF properly, and why black boxes fail
Covering text in a PDF isn't the same as removing it. Here is what a PDF really contains, the methods that leak, and a six-step way to redact one so the information is gone.
For: anyone about to send a PDF that contains personal or confidential information
Key points
- Redaction means removing information from a copy of a document. A black rectangle, a highlight or a change of text colour only hides it, and copy and paste will reveal it.
- A PDF holds more than the visible page: a text layer, images, annotations, metadata, attachments and sometimes earlier versions. Each can carry what you meant to remove.
- Blurring and pixelating aren't safe for text. Short strings such as names and numbers can be reconstructed.
- The dependable methods are a real redaction tool followed by hidden-data removal, or rebuilding each page as an image so nothing sits beneath the bars.
- Always test the result: select all, copy, paste, search for what you removed, and read every page.
To redact a PDF properly, you have to remove the information from the file, not cover it. A black box drawn over text leaves the text underneath, where anyone can select it, copy it and paste it somewhere else.
That gap between looking redacted and being redacted is behind most of the redaction failures that reach the news. The fix isn't complicated. It means using the right kind of tool, and checking the result before the file leaves you.
What redaction means
Redaction is the permanent removal of information from a copy of a document, so that it cannot be recovered from that copy. The original stays intact and stays with you. The redacted copy is the one you share.
A PDF makes this harder than it looks, because the page you see is only one part of the file. A typical PDF can hold:
- A text layer: the characters themselves, which is what search and copy and paste read.
- Images: photos, logos, signatures and scanned pages.
- Annotations: comments, highlights and shapes that sit on top of the page. A drawn black box is one of these.
- Metadata: the author, the software used, dates, and sometimes a title taken from the first line.
- Extras: form fields, bookmarks, attachments, hidden layers and, in files that were saved incrementally, earlier versions of the content.
Proper redaction deals with all of them. Covering the visible page deals with none.
Why black boxes fail
Each of these methods looks fine on screen. Each has leaked real information.
| What people do | What is still in the file |
|---|---|
| Draw a black rectangle over the text | The text. Select all, copy and paste reveals it. |
| Highlight in black, or turn the text black or white | The text, unchanged. Only its appearance is different. |
| Black it out in Word, then export to PDF | Usually the text, carried straight into the PDF's text layer. |
| Blur or pixelate it | Enough detail to reconstruct short text such as names and numbers. |
| Delete the words but keep the rest of the text layer | The exact spacing of the words around the gap, which can narrow down what was removed. |
| Redact the page and nothing else | Metadata, comments, attachments and earlier versions. |
None of this is theoretical. In April 2011 the blacked-out parts of a Ministry of Defence report on nuclear submarine reactors, published online, could be read by pasting them into another document. In January 2019 a court filing by Paul Manafort's lawyers failed in the same way. Security researchers have since shown that pixelated text can be recovered, and that even when the redacted words are deleted, the positions of the characters left behind can leak what was removed.
The ICO's guidance on disclosing documents securely makes the same points: don't cover text with black rectangles and leave it underneath, don't rely on blurring or pixelating, and don't treat converting to PDF as a redaction method on its own.
How to redact a PDF properly
- Work on a copy. Keep the original somewhere with controlled access. You may need it to answer questions about what was removed.
- Decide what has to go. Names, contact details, addresses and ID numbers are the obvious part. Also look for details that identify someone in context: a job title in a small team, an employer, a school, a memorable event.
- Use a redaction tool, not a drawing tool. A real redaction tool deletes the text and image data under each mark when you apply it. Shapes, highlighters and comment tools never do.
- Remove the hidden data. Strip metadata, comments, attachments, form fields, bookmarks and hidden layers. Save the result as a new file, so no earlier version travels with it.
- If in doubt, rebuild the pages as images. Rendering each redacted page to an image and building a new PDF from those images leaves no text layer and nothing beneath the bars. The cost is that the text can no longer be selected or searched.
- Check the result. Every time, using the checks below.
How to check a redacted PDF
Five minutes here is cheaper than a breach report. Before you send the file:
- Select all and copy. Paste into a plain text editor. Nothing you redacted should appear.
- Search for what you removed. Try a redacted surname, an email domain and part of a phone number.
- Open the document properties. Check the title, author and subject fields.
- Look for comments, attachments and bookmarks. A bookmark can repeat a heading you redacted on the page.
- Open it in a second viewer. A browser and a desktop reader can show layers and annotations differently.
- Read every page. You're looking for anything missed, and for clues that identify someone without naming them.
- Check the file name. A file called
smith_j_grievance_redacted.pdfundoes the work.
What redaction doesn't fix
A technically perfect redaction can still identify someone. If a report describes "the only night-shift supervisor at the Leeds depot", removing the name changes very little. Bars of different lengths hint at the length of what they cover. A name redacted on page 2 but left in a footer on page 9 hasn't been redacted.
Redaction also doesn't make a document anonymous in the legal sense. Under UK GDPR, what remains is still personal data if a person can be identified from it, directly or indirectly. We cover that in anonymisation, pseudonymisation and redaction.
Where PII Purge fits
PII Purge takes the rebuild route from step five. Upload a PDF or Word document and it detects personal information in context, blacks out the detected areas and any embedded images, and rebuilds every page as an image. The output has no text layer, metadata, bookmarks, form fields or attachments, so there's nothing under a bar to copy.
Two limits are worth knowing before you rely on it. It needs a document with selectable text, so scanned and photographed pages aren't supported. And detection is automated: it can miss a detail or remove one you wanted to keep, so the checks above still apply. You can try it on one document a day without an account.
This is practical guidance on the technical and operational side of handling personal data, not legal advice. It describes the position as of October 2026. Check the legislation and the ICO's guidance, or take advice, before relying on it for a decision.
Questions this raises
Can redacted text be recovered from a PDF?
Yes, if the text was only covered. A black box, highlight or shape sits on top of the page while the text stays in the file, where copy and paste or a text search will find it. Text can't be recovered when it has been deleted from the file or when the page has been rebuilt as an image with the redaction burned in.
Does drawing a black box over text redact a PDF?
No. A drawn box is an annotation placed over the page. The text layer underneath is unchanged, so anyone can select the area, copy it and paste the hidden words into another document. Use a redaction tool that deletes the underlying content, or rebuild the page as an image.
Is it safe to black out text in Word and save it as a PDF?
Not on its own. Black highlighting or black text colour changes how the words look, not whether they are there, and exporting to PDF usually carries the words into the PDF's text layer. Delete or replace the words in Word before exporting, or redact the PDF with a proper tool afterwards.
Does redacting a PDF remove its metadata?
Not necessarily. Redacting what is on the page doesn't touch the document properties, comments, attachments, bookmarks or form fields unless the tool also removes hidden data. Remove those separately, or use a tool that rebuilds the document without them, and check the properties before sharing.
How do I check that a PDF has been redacted properly?
Select all the text, copy it and paste it into a plain text editor, then search the PDF for a name or number you removed. Check the document properties, comments, attachments and bookmarks, open the file in a second viewer, and read every page for details that identify someone without naming them.