Build a synthetic redaction test corpus
28 February 2026
Use invented markers whose exact locations you know before you redact anything. A useful test includes a file that should fail, a marker that must remain and a marker that was never present. Together they show whether a clean search reflects a successful removal or a search that could never find the target.
Plant four known targets
Create a small PDF from scratch using harmless data. Keep an untouched baseline and record the test version. Use the following four placements in the example.
| Location | Marker | Expected inspection before redaction |
|---|---|---|
| Page 1, native text | PINE-431 | Confirm it appears on the page and in extracted text. |
| Page 2, text rotated 90 degrees | RIDGE-762 | Inspection of the rotated page and the text layer identifies it. |
| Page 3, lettering in a raster image with no text layer | COVE-185 | Inspect the pixels at adequate resolution, since ordinary text search cannot find the image lettering. |
| Page 4, annotation contents | PINE-431 again | Find the second occurrence of the page 1 marker inside the annotation itself. |
Retain a public control such as KEEP-904 elsewhere on the page. Also specify an absent control, such as NEVER-528. Search the untouched file first. If the chosen method cannot find a known target there, it cannot demonstrate that target's removal later.
Challenge the reader’s checking method
Make an intentionally inadequate copy that merely draws a visible rectangle over the page 1 target. Run the same checks on it. The text should still be detectable in this test copy. In the separate published redaction experiment, an overlay-only file retained both native and OCR target detections. The page-redacted-only file still contained the tested annotation, metadata and attachment markers. These were results for that experiment's files.
Record the outcome per occurrence
On the candidate release copy, inspect the rendered pages, extracted text, raster region and annotation contents separately. Record expected and observed outcomes at each location, the file digest and the method used. A successful check on page 1 cannot close the duplicate in the annotation. Reject the test if a forbidden marker survives, the intended public control disappears or the baseline search fails. Report the tested surfaces explicitly.
Part of the How to redact a PDF properly guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
