Redaction: SAMPLE PII Black-box Redacted (PDF)
The same SAMPLE PII document with email, phone, SSN, and address black-boxed. Pair with the unredacted twin to verify redaction completeness.

Rendered preview of the pdf file (1.7 KB). Download above for the original.
Specifications
- Role
- black-box redacted
- Note
- email/phone/SSN/address blacked out
Testing contract
Expected to pass- Scenario
- Exercise Redaction: SAMPLE PII Black-box Redacted (PDF) in its redaction workflow. The same SAMPLE PII document with email, phone, SSN, and address black-boxed.
- Expected result
- PDF contains 1 pages; first-page text begins `SAMPLE PII Document (REDACTED) Name: Jordan Rivera [REDACTED] [REDACTED] [REDACTED] [REDACTED] Note…`. Declared feature checks: role=black-box redacted. The declared comparison counterpart is doc-redact-pii-clear; preserve the stated difference instead of expecting the container bytes to match.
What is a .pdf file?
PDF (Portable Document Format) is a page-oriented format that fixes layout, fonts, and vector and raster graphics so a page renders identically anywhere. A `%PDF-` header is followed by numbered objects, a cross-reference table mapping each to a byte offset, and a trailer; edits append incremental updates rather than rewrite the file. Page content is a stream of drawing operators, so a PDF holds no words or paragraphs, only positioned glyph runs. Adobe released it in 1993 and gave it to ISO as ISO 32000-1 in 2008.
How to use this file
Use an example PDF to test text extraction, rendering, metadata parsing, AcroForm handling, and OCR pipelines: checking that extraction reconstructs reading order from glyph positions, that a scanned page yields no text, and that an incremental update leaves earlier revisions in the file.
How to use this file for testing
“Redaction: SAMPLE PII Black-box Redacted (PDF)” is a deterministic Testaroo fixture for PDF editor testing. Form PDFs, bookmarked documents, scanned pairs, and deliberately corrupt files for exercising PDF editors, parsers, and fillers.
Documented properties for this file: black-box redacted. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.
Document fixtures list their internal structure (pages, fields, tracked changes, embedded objects) in the spec table. Test extractors, converters, and OCR against that known structure, and compare searchable↔scanned or format-twin companions when present.
Code examples
import pdfplumber # pip install pdfplumber
with pdfplumber.open("pii-redacted.pdf") as pdf:
print(len(pdf.pages), "pages")
print(pdf.pages[0].extract_text())Generated by generation/docs_ocr_wave_b.py. Free for any use, no attribution required, license.
Related files
- jpgRedaction: SAMPLE PII Unredacted (JPEG)JPEG twin of the unredacted SAMPLE PII page, for image-based redaction and OCR pipelines.

- pdf10-Page PDF with Bookmarked TOCA ten-page PDF with a table of contents and a full bookmark outline (10 entries), for testing PDF navigation, outline parsing, and page extraction.

- pdf50-Page PDF (text-light)A 50-page, text-light PDF, for testing page-count handling, pagination, and large-document navigation without a large file.

- pdfAirline Boarding Pass (PDF)An airline boarding pass laid out as a landscape PDF: passenger, flight, gate, seat, PNR, and a decorative barcode strip. A fixture for testing document-layout parsing and field extraction. Synthetic; the barcode is decorative.

- pdfAlder Table Bistro: Credit note PDFCredit note PDF for Alder Table Bistro. Credit note CN-BST-7002 dated 2026-08-29 against invoice INV-BST-5004 dated 2026-08-28: 5 l at 7.79, net 38.95 and 40.90 CAD including GST. Goods-received note GRN-BST-2004 records only 3 units returned, so the credit is 2 units too large.

- pdfAlder Table Bistro: Delivery note and goods-received note PDFDelivery note and goods-received note PDF for Alder Table Bistro. Goods-received note GRN-BST-2002 against PO-BST-1002, recording supplier delivery note DN-BST-3002 on 2026-08-14. Line 2 records 16 kg delivered against 20 ordered and is marked 'short delivery'. A goods-in note under the table explains each line in words.
