The Fake-Redaction Trap: Empirical 2026 PDF Redaction & Zero-Exfiltration Benchmark
Empirical 2026 PDF redaction benchmark: 3 fake-redaction traps vs vector splicing (0/4 PII in pdftotext, 0 B in qpdf) and 0 B uploaded across 6 tools.
Measured target & environment. Live production https://unboundpdf.com measured on 2026-11-18T14:26:21.681Z (totalDurationMs: 54,264 ms) using Node.js v26.12.1 (darwin arm64), Playwright Chromium 1.61.1, Poppler pdftotext/pdfimages/pdfinfo, qpdf 12.4.0, and ExifTool 13.55. For additional self-verification methods, see Trust & Verification.
Executive summary
Visual black boxes in PDFs routinely fail forensic inspection because PDF viewers stack graphics operators and annotations on top of untouched text-show operators (Tj/TJ) and image XObjects. In our reproducible benchmark against three synthetic test PDFs, all three common fake-redaction methods — (1) /Square annotation overlays, (2) opaque black vector rectangles drawn after text, and (3) white-on-white vector covers — left 4 of 4 (100%) planted text PII strings recoverable via pdftotext, 80 bytes (6 of 6 checked tokens) intact inside expanded qpdf --qdf objects, and full EXIF GPS coordinates (52 deg 31' 12.00" N, 13 deg 24' 18.00" E) intact inside the embedded JPEG.
Running the same fixture through UnboundPDF's client-side Redact PDF engine (2,131 ms) spliced out all 4 text records, patched the intersecting JPEG in the DCT coefficient domain (jpeg-mcu-patch, reducing the embedded JPEG from 19,194 B to 959 B in Playwright Chromium with 0 EXIF GPS, Camera, or Artist tags), cleared 7 /Info dictionary keys, and left 0 surviving token bytes in qpdf --qdf and 0 of 4 strings in pdftotext. Auditing all four variants in Redaction Verifier flagged all three fake-redaction files (4 findings each) and confirmed 0 findings on the spliced output.
Across all 6 live workflows in Part B (Merge PDF, Compress PDF to 100 KB, PDF Editor, Redact PDF bank statement mode, OCR PDF, and Sanitize PDF), Playwright Chromium recorded 0 POST/PUT/PATCH requests, 0 bytes of document payload transmitted, 0 WebSocket connections, 0 third-party hosts, and 6 of 6 offline completions with context.setOffline(true) enabled after load.
Synthetic test corpus (deterministic SHA-256 inputs)
All three input fixtures are generated locally with fixed timestamps (2026-01-15T10:00:00Z) so every byte and SHA-256 digest is deterministic:
| Fixture | Bytes | SHA-256 | Planted contents |
|---|---|---|---|
fixtures/01-pii-identity-photo.pdf |
20,774 | f3a74eb2c63df4d34c8688ec60c831e81738dfc7545a1c97f2c353fd1a5600b0 |
SSN: 900-12-3456, German Steuer-ID: 86095742719, IBAN: DE89370400440532013000, Invoice Amount: EUR 4,850.00, /Info Title/Author/Subject, and a 480x240 JPEG (19,194 B) with EXIF GPS (52 deg 31' 12.00" N, 13 deg 24' 18.00" E), Canon EOS-Test-2026, Artist: Hans Mustermann |
fixtures/02-bank-statement-de.pdf |
1,399 | 591c7d736b6ec9557ae5d802e04a3df32737df2b9c82c8e6e07688c5cd317c1f |
German Kontoauszug with 3 outgoing debit rows (900-12-3456, 86095742719, DE89370400440532013000) and 1 incoming credit row (+3.400,00 Gehalt Oktober Arbeitgeber GmbH) |
fixtures/03-scanned-invoice-ocr.pdf |
245,455 | 1a4d002d300c7223069c2fcdaf0586bbf3de9143da3909ed088eae156418dd4d |
Pure raster scan (1654x2339 JPEG, 0 text objects) displaying all 4 PII tokens visually plus embedded EXIF GPS |
Part A: The fake-redaction trap vs. vector redaction & audit
Every variant derived from 01-pii-identity-photo.pdf was audited with Poppler pdftotext, qpdf --qdf --object-streams=disable, pdfimages -j + exiftool, and live Redaction Verifier:
| Method / artifact | Size (B) | pdftotext PII |
qpdf --qdf tokens |
Embedded JPEG EXIF GPS | /Info PII |
Live redaction-verifier verdict |
|---|---|---|---|---|---|---|
Baseline (01-pii-identity-photo.pdf) |
20,774 | 4 / 4 (100%) | 6 / 6 (80 B) | Intact (19,194 B JPEG) |
Yes | — |
(1) Annotation overlay (fake-1-annotation-overlay.pdf) |
20,846 | 4 / 4 (100%) | 6 / 6 (80 B) | Intact (52°31'12"N, 13°24'18"E) |
Yes | "Text is still present in this file." (4 annotation-cover findings) |
(2) Vector black box (fake-2-vector-blackbox.pdf) |
21,119 | 4 / 4 (100%) | 6 / 6 (80 B) | Intact (52°31'12"N, 13°24'18"E) |
Yes | "Text is still present in this file." (4 text-under-cover findings) |
(3) White-on-white cover (fake-3-white-on-white.pdf) |
21,122 | 4 / 4 (100%) | 6 / 6 (80 B) | Intact (52°31'12"N, 13°24'18"E) |
Yes | "Text is still present in this file." (4 text-under-cover findings) |
(4) UnboundPDF vector redact-pdf (partA-4-unboundpdf-redacted.pdf) |
2,873 | 0 / 4 (0%) | 0 / 6 (0 B) | Stripped (959 B patched JPEG, 0 GPS/IFD0 tags) |
Cleared (7 /Info keys) |
"No text was found under a mark on the pages checked." (Page 1 — nothing found) |
Forensic receipts & scope disclosures (Part A)
- Artifact SHA-256 digests:
artifacts/fake-1-annotation-overlay.pdf:9234e8f8690059e3e218cbb86232d060922f6eca4152109cbc1b1f1c4df35ed0(20,846 B)artifacts/fake-2-vector-blackbox.pdf:7a4543da69a999905b95e93ed0e1ed8e188dea0d3b71cf93c3e906c843af84de(21,119 B)artifacts/fake-3-white-on-white.pdf:9a5c4dd67341f6627b78b3ae05e4042c63e5b8a757fed6d414ec6f34a8688f73(21,122 B)artifacts/partA-4-unboundpdf-redacted.pdf:71090c509ea5e07cd89038cc8b19c41952766e28f5fef0473b7d7fe408d7e433(2,873 B)
- Engine self-verification receipt:
recordsRemoved: 4,imagesPatched: 1(method: "jpeg-mcu-patch"),rasterFallback: false,orphansRemoved: 2,verified: true(raw-byte scan: 11 object(s) enumerated (4 stream(s) decoded, 1 undecodable/raw, 11 non-stream object(s) with string content)). - Scope disclosure 1 (Redaction Verifier): The verifier detects extractable text that is still present under covers, in annotations, in rendering mode 3, or in hidden OCG layers; as its interface states, it cannot reconstruct what was already removed.
- Scope disclosure 2 (Redact PDF vs. Sanitize PDF): In
redact-pdf, embedded JPEG EXIF metadata is stripped when a redaction box intersects the JPEG (jpeg-mcu-patchre-encodes the JPEG stream without APP1 EXIF). Leaving a JPEG completely outside every redaction box preserves that image's stream bytes, while Sanitize PDF specifically targets PDF-level metadata (/Info, XMP), annotations, attachments, scripts, and form values rather than internal JPEG APP1 segments.
Part B: Zero-exfiltration network proof across 6 core workflows
Each workflow was executed live on https://unboundpdf.com in Playwright Chromium with full HTTP and WebSocket request capture, followed by a second run under context.setOffline(true) after initial page and engine load. Dedicated redaction presets (Redact Bank Statement PDF and Redact SSN & IBAN in PDF) run the same zero-upload engine:
| Workflow | Elapsed (ms) | Output size & key verification (Playwright Chromium) | HTTP GETs | POST/PUT |
Payload sent | WebSockets | 3rd-party hosts | Offline mode |
|---|---|---|---|---|---|---|---|---|
| merge-pdf | 1,805 | 22,122 B (2 pages merged in Playwright Chromium) |
19 (unboundpdf.com) |
0 | 0 B | 0 | 0 | Pass (22,121 B) |
| compress-pdf 100 KB | 2,802 | Playwright Chromium: 245,455 B → 95,345 B (-61.16%, < 102,400 B) |
18 (unboundpdf.com) |
0 | 0 B | 0 | 0 | Pass (95,345 B) |
| pdf-editor replace | 4,989 | 21,649 B (4,850.00 gone, [REDACTED] present) |
34 (unboundpdf.com) |
0 | 0 B | 0 | 0 | Pass (21,653 B) |
| redact-pdf bank | 2,690 | 2,156 B (3/4 outgoing rows blacked out; dates, amounts & +3.400,00 credit kept) |
27 (unboundpdf.com) |
0 | 0 B | 0 | 0 | Pass (2,156 B) |
| ocr-pdf | 10,040 | 249,350 B (4/4 tokens recognized: SSN, Steuer-ID, IBAN, Amount) |
26 (unboundpdf.com) |
0 | 0 B | 0 | 0 | Pass (249,350 B)* |
| sanitize-pdf | 1,885 | 20,794 B (/Info Title/Author/Subject cleared) |
22 (unboundpdf.com) |
0 | 0 B | 0 | 0 | Pass (20,794 B) |
*Note on OCR PDF offline behavior: On first execution, ocr-pdf lazily fetches tesseract-core-simd-lstm.wasm.js and eng.traineddata.gz via same-origin GET from unboundpdf.com (0 bytes of document data sent). Once fetched, context.setOffline(true) succeeds on subsequent OCR runs (failedRequestsCount: 0).
Output SHA-256 receipts (Part B)
artifacts/partB-1-merged.pdf:bcfe2203f9a33ebaef23e166a39ec63127f1536bfdb0cbc2392b92daaa48c38b(22,122 B)artifacts/partB-2-compressed-100kb.pdf:88f8884bd8fcac806a3529cc66b79ec9f4ef0bb90b682096a446ef28cc300df4(95,345 B)artifacts/partB-3-edited.pdf:ff6ea5d5e3b5b30ff52bd51b732eb66462a99c7d631bbea7fa095f04ca6e1145(21,649 B)artifacts/partB-4-bank-redacted.pdf:eff256bcaf496ae105e28eee363237e3e86fd6cd5719e9abe439f7d47fadfe56(2,156 B)artifacts/partB-5-ocr.pdf:278580e708cc1fcddf4376f3d054f1d29ce8ab61d9581efc8da18f205593f5f7(249,350 B)artifacts/partB-6-sanitized.pdf:4c0828d7cd8ca58edcf1b85ed0a4f6afb4908d9a3f5f04752143f45dac1e46d8(20,794 B)
How to verify any redacted PDF in 60 seconds
Before sending a redacted statement, filing, or tax notice, run three quick checks that require zero trust in any vendor:
- Drop the saved PDF into Redaction Verifier to scan for text hidden under filled rectangles,
/Squareannotations, rendering mode 3, or hidden optional-content layers. - Run
pdftotext redacted.pdf -andqpdf --qdf --object-streams=disable redacted.pdf - | grep -i "needle"locally to confirm removed strings do not survive in raw streams. - Extract embedded images with
pdfimages -j redacted.pdf /tmp/imgand runexiftool /tmp/img*, plus follow the DevTools Network method in the PDF Privacy Lab and Trust & Verification to confirm 0 bytes of your document leave the browser tab.
Frequently asked questions
Why do black boxes and annotation overlays fail pdftotext and qpdf checks?
Because a PDF page is an ordered stream of drawing operators. Drawing a black rectangle or adding a /Square annotation places a visual cover above existing Tj/TJ text operators and image XObjects without removing the underlying bytes.
How can I test a redacted PDF myself before sharing it?
Run it through the in-browser Redaction Verifier at unboundpdf.com/tools/redaction-verifier/ to check for extractable text under covers or annotations, and inspect the file locally with pdftotext, qpdf --qdf --object-streams=disable, and pdfimages -j with exiftool.
What are the scope limits of Redaction Verifier, Redact PDF, and Sanitize PDF?
Redaction Verifier detects extractable text still present under marks, annotations, rendering mode 3, or hidden layers; it cannot reconstruct what was already removed. Redact PDF strips embedded JPEG EXIF when a redaction box intersects the JPEG via jpeg-mcu-patch (untouched JPEGs outside all boxes keep their stream bytes), while Sanitize PDF clears PDF-level /Info, XMP, annotations, attachments, scripts, and form values rather than internal JPEG APP1 segments.
How was zero document exfiltration verified across the six workflows?
Playwright Chromium recorded every HTTP request and WebSocket frame during live runs of merge-pdf, compress-pdf, pdf-editor, redact-pdf, ocr-pdf, and sanitize-pdf: 0 POST or PUT requests, 0 bytes of document payload transmitted, 0 third-party hosts, and 6 of 6 passing with context.setOffline(true) after page load.
UnboundPDF is a free suite of 54 PDF and image tools that run in your browser: no upload, no account, no watermark. How to check that yourself.
Try it yourself
Free, private, no account. Runs entirely in your browser.