Formats & workflow

A scanned PDF needs OCR and a real redaction, not a marker

A practical guide to redact a scanned document: where the data hides, what to remove, and how to verify the output.

Redact a Scanned Document: OCR, Then True Redaction

A scanned PDF needs OCR and a real redaction, not a marker. A scan is an image until OCR adds a text layer. Covering the image with a rectangle leaves the text layer, the original pixels and often the OCR output intact. True redaction changes the pixels and the text.

What changes with this format

Deskew and clean the scan, run OCR, locate the identifiers, replace the image region and rebuild the text layer. Keep the OCR confidence and flag low-confidence spans for a person.

Where the data hides

The page is only one layer. In this format, check:

The redaction flow

  1. Inspect the scan and the OCR quality.
  2. Mark the identifiers on the image.
  3. Replace the pixels, not just overlay them.
  4. Rebuild or remove the text layer.
  5. Verify by search and copy/paste.

Controls to verify

  • A deskew and resolution check before OCR.
  • A confidence threshold with a review queue.
  • Pixel-level removal, not an annotation.
  • Text-layer verification after export.
  • A sample of handwriting and stamps reviewed by a person.

Retention and evidence

Keep the original scan, the OCR output and the redacted file under the same retention decision. The OCR sidecar can contain the removed values even if the image is clean. Delete it or protect it.

Limits

OCR is imperfect on handwriting, stamps, low resolution and unusual fonts. Redacting an image can leave a shadow or a recoverable layer if the export is wrong. The text layer may still contain the value after a visual cover.

How Veilbrook fits

Veilbrook runs OCR, finds candidates, masks the image and the text layer, then runs a second pass. Low-confidence spans are flagged for review rather than silently accepted.

What to ask before you build

What good looks like

A good redaction is boring: the document still serves its purpose, the identifiers are gone, the report matches the output, and a second person can repeat the check. The output opens in the recipient’s tool, the masked areas do not paste back, and the original is kept under a retention rule that someone owns.

Before you release

Open the output in the same tool the recipient will use. Select each masked area and paste it into a text editor. Search for every value you removed, including the header, the attachment, the comment and the OCR layer. Compare the report with the file and keep both. If a value survives, the job is not done.

Common mistakes

Questions

Is a black rectangle enough on a scan?

No. It can leave the OCR text and the original pixels. Replace the content and verify both layers.

Can OCR read handwriting?

Sometimes, with errors. Treat handwriting as a review item, not an automatic pass.

Should I keep the OCR file?

Only if the retention policy allows it. It can contain the values you removed.