Guide · 7 min read
How to check if a PDF is really redacted
To check a PDF redaction, open the redacted copy and try to get the hidden text back. Select the text across each black box, copy it and paste it into a plain-text editor; search the PDF for each redacted word; and look at the document properties for a name left in the title or author. If any redacted word comes back, the redaction failed. Test the exact file you will send, not the original.
Updated · From the team that makes Sablemark
The short answer
- 01
Open the file you'll send. Test the exact redacted copy you are about to share, not the original or an earlier draft.
- 02
Copy and paste. Select all the text on each redacted page (⌘A on a Mac, Ctrl+A on Windows), copy it and paste it into a plain-text editor. Look for any redacted word.
- 03
Search for redacted words. Use Find (⌘F or Ctrl+F) to search the whole PDF for each name, number or phrase you redacted. It should find nothing.
- 04
Try to move the box. Click a black box. If you can select, move or delete it, it's an annotation covering the text, not a redaction.
- 05
Check the properties. Open the document properties (Tools › Show Inspector in Preview, Document Properties in Acrobat) and look at the title, author, subject and keywords.
- 06
Look for hidden copies. Check the bookmarks, attachments and comments panels, which can repeat what the page hides.
The copy-paste test
The quickest check is to copy the text out. Open the redacted PDF, select all the text on the page, copy it and paste it into a plain-text editor such as TextEdit (in plain-text mode) or Notepad. If a redacted word appears in the pasted text, it's still in the file and anyone can read it.
If nothing can be selected at all, the page may be an image (a scan, or a flattened page). Then the copy-paste test proves little: use the box test below, and check whether the page also has a hidden text layer by searching for a word you can see.
- On a Mac, open the PDF in Preview, click in the page, press ⌘A and then ⌘C.
- On Windows, open it in your PDF reader, press Ctrl+A and then Ctrl+C.
- On iPhone or iPad, open it in Files or Preview, press and hold on text near the box, choose Select All, then Copy.
- Paste into a plain-text editor or a new note and read through it. Also try dragging a selection directly across one black box.
Search for the redacted words
Search the whole document for every name, number and phrase you redacted. Open Find with ⌘F (Ctrl+F on Windows) or the Search button in the Preview app on iPhone and iPad, and type each term. A correctly redacted PDF returns no matches for them.
Search for partial terms too: the last four digits of an account number, a surname without the first name, or an email address's user name. A redaction that removed "Jane Example" from the body can still leave "Example" in a header, a table or an image caption.
Check whether the black box is an annotation
Click or tap a black box. If you can select it, move it, change its colour or delete it, it's an annotation drawn on top of the page, and the content underneath is untouched. Delete the box in a copy of the file to see what it hides.
- In Preview on Mac, annotations can be selected with the pointer; View › Show Markup Toolbar shows the shape tools that created them.
- In Acrobat or Acrobat Reader, black boxes listed in the Comments panel are annotations.
- A black box that is part of a scanned image can't be moved, but a picture pasted on top of a page can. Try dragging it.
Check the metadata and document properties
A PDF's metadata can name the person, client or case that the pages hide. Open the document properties and read every field: title, author, subject, keywords, and the app that created the file. In Preview on Mac choose Tools › Show Inspector (⌘I); in Acrobat or Acrobat Reader open Document Properties (Ctrl+D, ⌘D on a Mac).
On a Mac you can also run mdls file.pdf in Terminal to see what macOS has indexed, such as the title and authors. For a complete list, including the XMP metadata block, the free command-line tools exiftool file.pdf and pdfinfo -meta file.pdf print everything they find.
Preview's Redact tool doesn't remove metadata, so this check matters most after a Preview redaction.
How Sablemark checks every redaction
Sablemark, a redaction app for iPhone, iPad and Mac, runs these checks itself before it lets you save. After redacting, it reopens the new file and checks that no text can be extracted from the redacted areas, that the redacted text no longer appears on its page, that your search terms are found nowhere in the document and that the metadata is gone. Save Redacted PDF… only appears when every check passes.
The checks run on your device, with no account and no upload. They confirm that what you marked was removed; they can't know whether you marked everything that should go, so still read every page. Your first 3 redacted PDFs are free; Sablemark is coming soon to the App Store.
| Test | What it catches | Where to run it | |
|---|---|---|---|
| Copy and paste | Text left under black boxes | Any PDF reader and a text editor | |
| Search | Redacted words left anywhere in the text | Find (⌘F or Ctrl+F) in any PDF reader | |
| Box test | Boxes that are annotations, not redactions | Preview, Acrobat Reader | |
| Document properties | Names in the title, author, subject or keywords | Preview's Inspector, Acrobat's Document Properties, exiftool | |
| Sidebars and text extraction | Bookmarks, attachments, comments, invisible text | PDF reader sidebars, pdftotext | |
| Sablemark's verification | Text in redacted areas, search terms anywhere, metadata | Automatically, before saving |
Common questions
Why can I still copy text that was redacted?
Because it wasn't redacted, only covered. A black rectangle, highlight or Markup shape is drawn on top of the page, and the text underneath stays in the file. Redact it again with a real redaction tool, such as Preview's Tools › Redact on a Mac, and send the new file.
How can I tell if a PDF redaction is real?
Select all the text, copy it and paste it into a text editor; search the PDF for the redacted words; and try to move or delete a black box. If no redacted text comes back and the boxes can't be moved, the visible redaction is real. Then check the document properties and sidebars for hidden copies.
Can I check a redaction on my iPhone?
Yes. Open the PDF in Files or the Preview app, press and hold on the text, choose Select All and Copy, then paste into Notes and read it. Use Preview's Search for each redacted word, and tap a black box to see whether it can be moved.
Is a PDF safe if searching finds nothing?
Not necessarily. Search only reads the text layer. Also check that the boxes can't be moved (an image may be hidden underneath), that the metadata doesn't name what was removed, and that bookmarks, comments and attachments don't repeat it.
Does printing to PDF make a redaction safe?
Usually not. Printing or exporting to PDF generally keeps the text layer, so text under a box is still there. Only real redaction, or turning every page into a plain image, removes it.
Is there a free PDF redaction checker?
Yes. The copy-paste, search and properties tests in this guide need nothing but a PDF reader. The free command-line tools pdftotext and exiftool extract all text and metadata, and the Free Law Project's open-source X-ray finds boxes drawn over text. Be careful with online checkers that may upload your file.