How to Redact a PDF Properly (and Why Black Boxes Fail)
To redact a PDF properly you must remove the underlying text and images, not just cover them. A black box drawn on top of a sentence hides it on screen, but the original text usually remains in the file, where anyone can copy it, search for it or extract it.
Failed redactions have exposed confidential information in court filings and official reports for years. The US National Security Agency published guidance, Redacting with Confidence, precisely because covering text is not the same as deleting it.
Why covering text does not work
A PDF page is built in layers. Text is stored as characters with positions; images are stored as separate objects; shapes and annotations are drawn on top. When you add a black rectangle or a highlight, you add a new layer. The text underneath is still in the file, unchanged.
The same problem affects:
- Changing the text colour to black on a black background.
- Placing an image over the text.
- Redacting in a word processor, then converting to PDF, if the redaction was only visual.
- Scanned pages that have been run through OCR, which adds an invisible text layer beneath the image.
How proper redaction works
A real redaction removes the content inside the marked area from the file, not just from view. Dedicated redaction features in full PDF editors delete the underlying text and image data and then draw the box. A box drawn on top, by itself, removes nothing.
Priya LifePDF's redaction tools draw opaque boxes onto the page: they do not delete the text underneath. To remove it, you rasterise the result, which rebuilds each page as a picture so only what is visible survives. The full process:
- Mark every area or search term to redact. For repeated names or numbers, search for every instance so none is missed: Find and Redact boxes each match, and Redact PDF lets you draw boxes by hand.
- Remove the content under the boxes by converting the boxed file with Rasterize PDF, using PDF output. Each page becomes an image of what you see, so the covered text, the original text layer, metadata, comments and attachments are not carried over. The pages are no longer searchable, and a resolution of 150 DPI or more keeps small print readable.
- If you cannot rasterise (for example, the recipient needs searchable text), use a redaction feature that deletes content in a full PDF editor instead, then remove hidden information: metadata with Remove Metadata, and comments, attachments and form data with Sanitize PDF.
- Save the result as a new file and keep the unredacted original secure.
How to check a redaction worked
Always test the redacted file before sharing it:
- Search. Open the PDF and search for a word you redacted. It should not be found.
- Copy and paste. Select the text around a redacted area and paste it into a plain text editor. The redacted words should not appear.
- Check metadata. Look at the document properties for names or titles you meant to remove. View Metadata shows them.
- Check attachments and comments. Hidden attachments and review comments can contain the very text you removed from the page.
If any test finds the hidden text, the redaction has not worked: go back to the rasterise step before sharing the file.
Redact without uploading the original
The files that need redaction are, by definition, the ones you should not send to a stranger's server. Priya LifePDF's redaction tools run in your browser, so the unredacted document never leaves your device. You can confirm that yourself with our guide on how to check whether a PDF tool uploads your files.
Tools mentioned in this article
Frequently asked questions
Does a black box redact text in a PDF?
No. A black box or highlight is an extra layer drawn on top of the page. The original text stays in the file and can usually be copied or searched unless a real redaction tool removes it.
How do I permanently remove text from a PDF?
Either use a redaction feature that deletes the content inside the marked area, or cover the area with an opaque box and then rasterise the page so only the visible image survives. In both cases remove metadata, comments and attachments, and test the result before sharing.
How can I check that a PDF is properly redacted?
Search the document for a redacted word, copy and paste text around the redacted area into a plain text editor, and check the document metadata. The redacted content should appear in none of them.
