Production

Redaction Check

Finds failed redactions in PDFs: text still present under black boxes or dark annotations, redaction marks never applied, and terms that should not appear anywhere in the file.

PRO Command line: redaction-check Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

A black box drawn over text hides it on screen, but the text is often still in the PDF: it can be selected, copied, searched and extracted. This tool reads each PDF and reports dark or invisible text whose centre sits under a dark filled shape, text under a dark comment-style annotation (a box, highlight, ink or similar, which can simply be moved or deleted), and redaction marks that were placed but never applied.

Optionally, give it a list of terms that must not appear (names, account numbers and so on). Each is searched for, ignoring case, in the page text, comments, the document properties, the XMP metadata and the bookmarks.

Light text on a dark background is visible by design and is ignored. Scanned pages have no text, so redactions on them cannot be checked this way; such pages are listed so you can look at them.

Redaction Check
Redaction Check in LitTechKit
Redaction Check after a run on demonstration data.

Use it when

How to run it

  1. Choose the folder of redacted PDFs (or a single PDF) as Input.
  2. Choose an Output folder.
  3. Optionally, type the Terms that must not appear, one per line.
  4. Decide whether to Show the exposed text in the report; turn it off if the report will be shared.
  5. Click Run, read the notes, then Open report.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help redaction-check lists them.

Settings

SettingWhat it doesType and default
Terms
--terms
Words or phrases that must not appear anywhere, one per line (names, account numbers…). Each is searched for, ignoring case, in the text of every page, the document properties, bookmarks and comments. Empty: only the box and annotation checks run.
One word or phrase per line. A phrase matches even if the words are separated by line breaks or extra spaces. Leave it empty to run only the box and annotation checks.
text (lines)
empty
Show the exposed text in the report
--show-text
Put the text found under redaction boxes (and around each term found) in the report, so it can be checked. Off: the report gives only the page and position; use this when the report itself will be shared.
On, the Found column shows the text found under each box, and about 40 characters either side of each term found, so you can see what is exposed. Off, Found is left empty and the report gives only the page, the check and the position; use this when the report itself will go to the other side, a client or the court.
yes/no
true

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares. number
4

What you get

Each run creates its own folder inside the output folder, with the report redaction-check.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • "Redaction not applied" means the area was marked for redaction in a PDF editor but the redactions were never applied. Apply them in that editor and save again.
  • "Text under an annotation" is a comment, not a redaction: anyone can move or delete it. Redact that text properly with a redaction tool and check again.
  • Encrypted PDFs cannot be checked; remove the password first with Decryption.
Watch out for
  • With Show the exposed text in the report on, the report contains the very text that was meant to be redacted. Treat it as confidential, or run again with the option off before sharing it.
  • Not checked: white boxes over text (whiteout) and text hidden by an image drawn over it. If in doubt, flatten the PDF and check it visually.
  • A clean result means no hidden text was found under dark shapes or annotations. It does not prove the right things were redacted.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run redaction-check --input "D:\Matter\Production\Redacted" --output "D:\Matter\QC" --terms "Jane Citizen" --show-text false

Related tools