Create Synthetic PDFs for a Fair Product Test

3 November 2026

Hands type on a laptop with a mostly blank browser window.
Illustrative photograph. Cropped and resized. Photo: “Keyboard Typing Hands” — Design by Matt / NegativeSpace. · CC0 1.0

To create synthetic PDFs for a fair product test, evaluators replace confidential customer documents with new, independently authored test fixtures that replicate essential layout features and expected extraction outcomes. Build fresh pages and embedded objects from the chosen features. Reusing a customer PDF and changing visible names can leave original text, attachments or metadata behind. However, synthetic corpora carry an explicit limitation: synthetic files let a tester examine a bounded operation, but their business representativeness remains unestablished until validated against production document distributions.

Why Synthetic Test Corpora Are Necessary

Evaluating PDF processing software often requires testing document structures found in proprietary customer files that cannot be shared or distributed. Using real customer documents across external test environments introduces data privacy and compliance risks. Evaluators resolve this by building a harmless synthetic replacement dataset.

For example, suppose the unshareable file contains an invoice table that continues over a page break. Preserve the structural problem without copying the invoice. Author a two-page fixture containing a repeated header, an invented item before the break and another after it. Set quantities to two and three and set both unit prices to ten. Declare two data rows, a total quantity of five and a total value of fifty. A result with three rows has counted the repeated header; a result with one has lost an item. These are proposed test inputs and expectations, not observed performance.

Inspect the new file’s visible content, extracted text, metadata and embedded items before sharing it. Give every candidate the same file, expected fields, instructions and scoring rule. Keep the original confidential example in its approved environment. The synthetic replacement covers a repeated-header decision; it says nothing by itself about the diversity or frequency of real invoices. Corpus manifest · Integrity results

Structure of a Synthetic Control Corpus

A fair synthetic test dataset pairs each PDF document with a ground-truth reference file and cryptographic checksums. In the demonstration manifest corpus-manifest.json, synthetic fixtures illustrate specific extraction challenges and the author’s declaration says the files contain no real personal or business data. Corpus manifest

Four synthetic fixtures demonstrate distinct PDF testing controls:

  • Multi-page Table Fixture (CF01): Uses synthetic-tables.pdf (three pages, SHA-256 beee40fa...) to test table extraction sensitivity, repeated headers, and merged labels, expecting eight rows, 32 cell values, and column totals of 77 and 96.
  • Multi-currency Invoice Fixture (CF02): Uses synthetic-invoice-corpus.pdf (three pages, SHA-256 d0e3eaf6...) to validate structured fields across invoices and credit notes, expecting 21 header values and 20 line-item cells.
  • Vector Stroke Sample (CF03): Uses synthetic-stroke-sample.pdf (one page, SHA-256 63955c2d...) with synthetic letter shapes to evaluate visual transcription controls.
  • Form and Attachment Fixture (CF04): Uses source-form-and-attachment.pdf (one page, SHA-256 dba981a0...) featuring AcroForms and embedded attachments, expecting two logical field values and one embedded file hash. Corpus manifest

Local execution logs in integrity-results.json (using Python 3.12.14 and pypdf 6.10.0) confirm that PDF and reference file SHA-256 checksums match across all eight total pages. These automated checks verify file identity and page counts only; they do not validate reference accuracy or business representativeness. Corpus manifest · Integrity results

Worked Decision Ledger: Synthetic Replacement and Limitations

For a replacement fixture, evaluators record the replacement design, safety status, and review ownership in a decision ledger.

Ledger FieldWorked Example (CF02 Synthetic Invoice)Operational Status & Action
Fixture ID & SHA-256CF02 (d0e3eaf6a280c9ea13f4ad1a3d5b8c6b13880f23bf3bdc6a057df43c0094a148)Checksums match local integrity check
Replicated FeaturesInvoice layout, multiple currencies, credit noteHarmless synthetic design
Expected Outcome21 header values and 20 line-item cellsAuthor-declared ground truth
Data Safety Basiscontains_real_personal_or_business_data: falseAuthor declaration about these fixtures; inspect new files separately
Reference Review Statusreference_status: AUTHOR_DECLARED; HUMAN_REVIEW_PENDINGPending Human Verification
Business Representativenessrepresentativeness: NOT_ESTABLISHEDExplicit scope limitation

Corpus manifest · Integrity results

Resolving the Unsettled Result

The author’s expected values still need an independent check. Although automated identity checks pass, the reference truth remains flagged as HUMAN_REVIEW_PENDING. Corpus manifest · Integrity results

  • Current Owner: Lead domain evaluator or subject-matter expert.
  • Action Required to Close: Manually audit the 21 header values and 20 line-item cells against the rendered synthetic document. Record who checked the source cells, their findings and any corrected expected values before marking the reference reviewed.

Corpus manifest · Integrity results

In addition, evaluators must document missing categories in corpus-manifest.json. The synthetic corpus explicitly excludes real signed documents, human handwriting, multilingual content, XFA scripts, layered drawings, tagged accessibility, encrypted workflows, and production performance volumes. Logging these exclusions prevents mistaking technical test passes for full operational coverage. Corpus manifest

Compact Checklist for Synthetic PDF Creation

Follow this four-step checklist when replacing unshareable customer files:

  1. Isolate Document Features: Identify the key layout features (e.g. repeated headers, AcroForms, multi-currency tables) in the customer sample.
  2. Draft Harmless Replacements: Construct clean layouts and authored values containing no real personal or commercial data.
  3. Generate Ground-Truth JSON and Checksums: Create matching JSON reference files and record SHA-256 hashes for both files.
  4. Log Limitations and Pending Reviews: Set representativeness: NOT_ESTABLISHED and mark unverified ground truth as PENDING.

Corpus manifest · Integrity results

Next Practical Step

Review your benchmark repository against corpus-manifest.json. Select one unshareable customer sample, map its core structural features, and produce a harmless synthetic replacement (CF01–CF04 format) with SHA-256 checksums and an explicit NOT_ESTABLISHED representativeness tag. Corpus manifest · Integrity results

Part of the Freeze a PDF test corpus with checksums and reference files guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).