Audit only · finds text still under black boxes, unapplied marks, hidden text and layers

Check PDF Redactions

Drop a PDF that was supposed to be redacted. The check replays each page's drawing commands, matches filled boxes with the text drawn before them, and lists whatever can still be selected, copied or searched, with the recovered text and a highlighted page.

PDF to audit

Drop a redacted PDF

Up to 50 MB, first 300 pages checked. Password-protected files need Unlock PDF first.

This only audits: it never changes the file. To remove text for good, use Redact PDF, then run this check on the result.

Check PDF Redactions

Operator: Abdulla Al Fahad. How tools are built and checked

A redaction that only draws a black rectangle over text hides nothing from anyone who selects the area and copies it. The words are still in the page's drawing commands, a few operations earlier than the box. Court filings and government reports have leaked this way.

This page reads those drawing commands in order, matches each filled box with the text drawn before it, and prints what is still there. It also looks for redaction marks that were never applied, text that is invisible or white, and layers that are switched off. It audits and never edits; to remove text for good, use the redaction page and then check the result here.

Key features

  • Text drawn before an opaque black or white rectangle and still overlapping it, listed with the recovered words per box
  • Text drawn on top of a box in the box's own colour, and redaction annotations that were never applied, with any text under them
  • Invisible text (render modes 3 and 7), white text with nothing darker behind it, text under 1.5 pt and text placed outside the page
  • Pictures drawn over text, flagged for review because their pixels are not read
  • Hidden layers, comment text, attached files and document properties in a separate 'elsewhere in the file' list

What counts as a leak, a review item and a note

Each page's operator list is replayed with a graphics state: the transformation matrix, fill colour and opacity, and the text state with its font size, spacing, rise and render mode. Every text-showing operation becomes a run with a bounding box in page units and a position in drawing order; every filled rectangle and image becomes a shape with a box and the same order number.

A cover is a filled rectangle at least 3 points on each side, opaque to 95 percent, whose colour is dark (luminance 0.2 or less) or near white (0.94 or more), and smaller than 60 percent of the page. Text counts as under it when it was drawn earlier and at least half of its box lies inside the cover. A dark picture mask counts as a cover too, and so does a Square, Circle or Polygon comment shape that is filled dark or white and fully opaque, the kind drawn with a viewer's rectangle comment tool. Deleting that shape shows the text again, and the finding says so. A redaction annotation counts text with at least 30 percent of its box inside the marked rectangle.

Verdicts follow the findings. 'Leak' means text under a box, text in the box's colour on top of it, or text under an unapplied redaction mark. 'Review' means something suspicious that may be legitimate, such as invisible text on a scan or white text. 'Note' is information such as document properties. 'Not every page could be checked' replaces a clean result when pages beyond the first 300, or pages that could not be parsed, were skipped, or when part of the file could not be read, so the verdict never says clean for work it did not do.

How it works

Invisible text on a page that is also covered by a full-page picture is reported as a note, because that is how a scan with an OCR layer is built, and the note explains that a scan redacted after OCR can still hold the removed words. The same text on a page without such a picture is a review item.

White text is tolerated when a darker filled shape or any picture was drawn earlier beneath it, which is how reversed headings on a coloured band are made.

Annotations, layers, attachments and properties are not part of the page drawing, so they are read from the file's object structure separately and listed under 'Elsewhere in the file', with the page number for comments.

Common use cases

  • A court clerk checks a 12-page exhibit before filing: pages 3 and 7 each show text recovered under a black bar, so the file goes back to be redacted properly.
  • A journalist is given a leaked report whose redactions came from a markup tool; the check shows 9 redaction marks never applied.

How to use this tool

  1. Drop the PDF that was meant to be redacted.
  2. Read the verdict and the counts, then open each page that has findings.
  3. Use Previous and Next, or the table of pages with findings at the foot, to move between pages.
  4. Press Emphasise on the page on a finding to outline the box and the text beneath it.
  5. Download the report CSV, one row per finding, to keep with the document's record.

Example

Exhibit C, one page of a county filing, as it is built

Line 1: Complainant SSN 123-45-6789 on file   (black bar drawn over "SSN 123-45-6789")
Line 2: Witness: Ada Lovelace   (a Redact mark placed on it, never applied)
Line 3: Draft only, do not file before Friday   (white text on the white page)
Layer "Earlier draft": switched off when the file opens
Properties: Title "Exhibit C - Alder County", Author "J. Smith, Clerk"

Verdict and findings

'Text from behind redactions can still be recovered': 2 leaks, 2 to review, 1 note, 1 filled box. Leak, text under a filled box: 'SSN 123-45-6789'. Leak, redaction not applied: 'Witness: Ada Lovelace'. Review, white text: 'Draft only, do not file before Friday'. Review, hidden layer: 'Earlier draft'. Note, document properties: 'Title: Exhibit C - Alder County / Author: J. Smith, Clerk'.

Common pitfalls

Only axis-aligned filled rectangles and dark image masks count as covers. A box made from a curved path, a stamp that is an ordinary picture, or a pixel-level black bar is not matched with text, although a picture over text is flagged for review.

Text boxes are estimated from the font size and the advance of the glyphs, so a box that only touches the edge of a word can be missed or can include part of a neighbour.

A clean verdict is not a guarantee. Text converted to outlines, words in images, and anything stored in places this page does not read are outside the checks.

Only the first 300 pages are audited. A longer file gets the 'not every page could be checked' verdict and a note, so split it and check the remainder.

  • Check the redacted copy and not the original: the original is expected to fail, and a pass on the copy is the result that matters.

Common errors and how to fix them

"This PDF is password-protected."
An encrypted file hides its page content streams, which is exactly what the audit reads. Remove the password with Unlock PDF, run the check on the unlocked copy, and keep in mind that the unlocked copy is the one to publish.
"Page N could not be read and was skipped."
That page's drawing commands could not be parsed. Its text is not audited; open the page in a viewer and select around any redaction to test it by hand.
"This file is not a PDF."
The file does not start with the %PDF header. Export or re-save it as a PDF and run the check again.

Why a rectangle is not a redaction

A PDF page is a list of drawing instructions executed in order. A black rectangle is one more instruction, and the instructions that drew the text are still in the list. A viewer shows the result of all of them, so the text is covered; a text extractor ignores the rectangle and returns the text. Real redaction removes those instructions, for example by replacing the page with a picture of itself.

That is also why this check cares about order. A black box drawn before the text, with text on top of it in white, is a legitimate reversed label; a black box drawn after the text, over it, is a hiding place.

What 'Emphasise on the page' draws

The covering box is outlined in red and the text boxes beneath it in amber dashes. Hidden-text findings outline only the text. Boxes come from the same page-unit rectangles used in the report, converted through the page's viewport, so a rotated page highlights in the right place.

Frequently asked questions

Does the page change or upload my file?

It does not change the file. The recovered text appears on screen only, so an audit of a sensitive document leaves nothing behind except the CSV you choose to download.

Why is a white rectangle treated as a cover?

White-out boxes hide text on white paper exactly as black ones do. Both are matched with the text drawn before them, and the finding says which colour was used.

What should I do after a leak is found?

Run the file through Redact PDF, which replaces each marked page with a picture of itself so the text is gone, and audit the result here. A clean verdict on the second file is the check that matters.

Why are document properties only a note?

Title and author do not reveal redacted page content by themselves, but they sit outside the page content, so a box drawn on the page does not touch them, and they can name the person or case. Clear them in a PDF metadata editor if they should not travel with the file.