Freeze a PDF test corpus with checksums and reference files
6 May 2026
A fair rerun starts by proving which input and reference files each candidate received. The example manifest pairs four synthetic PDFs with four reference files and declares eight pages in total. Recalculate the hashes and page counts before interpreting any result from a later test.
Related articles
- Create Synthetic PDFs for a Fair Product Test
- Version a PDF test dataset
- Separate routine and edge-case benchmark results
- Update a corpus after a new document type appears
Can both runs use the same inputs and expected outputs?
The corpus defines the evidence a buyer will use to evaluate software. Begin with the decisions employees need to complete: extract a table, fill a form, inspect a signed record or produce an accessible reading copy. Each task requires its own expected outcome. A document that opens correctly is not automatically a valid test of extraction, editing or preservation.
Name the evaluation owner, intended users and mandatory outcomes. The corpus should connect these requirements to specific files and reference evidence. Record which failures would exclude a candidate from a workflow, even if it performs well on routine material.
Where this guidance stops
This article covers corpus construction and control. It does not publish a vendor ranking or claim that the small demonstration below represents an organisation's documents. Actual comparisons require observed tests under agreed conditions. Detailed multilingual selection and statistical sampling need additional work based on the population being evaluated.
Sample the document population
Routine, difficult and rare high-impact files
Start with an inventory that identifies document generators, business tasks, formats, languages, ages, sizes and access restrictions. Select across those dimensions instead of collecting whichever files are easiest to share. Multiple documents from one template can increase the file count without adding much coverage.
Separate three purposes. Routine files describe everyday workload. Difficult files exercise known limits, such as awkward tables or complex layouts. Rare high-impact files test requirements that must not fail silently, such as preserving attached evidence. Keep their results visible separately; a high routine pass rate should not conceal a mandatory-task failure.
The primary paper Datasheets for Datasets proposes documenting a dataset's motivation, composition, collection and recommended uses. Adapt that documentation principle to the PDF corpus. This is a useful organisational practice, not a PDF benchmarking standard or proof that a collection is representative.
For every proposed file, ask what new evidence it adds. Include feature combinations when they occur in real work: a scanned form with handwritten entries, or a signed document containing attachments. Hold out some document families from development and tuning, then use them during the agreed evaluation. Closely related versions should stay together so a supposedly unseen test does not simply repeat a familiar template.
Four PDF fixtures and four matching references
Inputs, assumptions and the expected result
The downloadable corpus manifest assembles four original synthetic reference PDFs from this programme. They contain eight pages in total. They include no real customer, employee or transaction data. Embedded DejaVu font notices remain with the owning assets.
| Corpus ID | Pages | Declared reference | Purpose |
|---|---|---|---|
| CF01 | 3 | Eight table rows, 32 cell values | Repeated headers and a table continued across pages |
| CF02 | 3 | 21 header values, 20 line-item cells | Invoice fields, separate currencies and a credit-note case |
| CF03 | 1 | Nine authored text fields | Labelled vector-stroke transcription control |
| CF04 | 1 | Two logical form fields and one embedded file | Structural preservation control |
Each entry records the PDF checksum, reference-file checksum, expected page count, feature tags, rights basis and coverage rationale. Paths are relative so the manifest and its linked assets can move together. The reference values were declared during synthetic authoring; they still require independent human approval before use as procurement evidence.
The supplied verification script was executed with Python 3.12.14 and pypdf 6.10.0. All four PDF checksums and four reference checksums matched the manifest, and the observed page counts were three, three, one and one. The saved integrity results therefore confirm file identity and page counts, not semantic correctness or supplier performance.
CF03 needs particular care: its letters are synthetic vector strokes, not samples of human handwriting. It can test whether a comparison process handles known labels, but cannot establish real handwriting recognition quality. CF04 has a deliberately damaged derivative elsewhere in the assets; that negative control is not counted as a fifth independent baseline document.
What the results establish
The example demonstrates a portable, versioned manifest with inspectable reference evidence. It omits real signatures, native-reviewed multilingual content, XFA, scripts, production-scale workloads and several other specialist categories. These are explicit coverage gaps. Passing these four files would establish only performance on four controlled fixtures under the tested conditions.
Check coverage and expected outcomes
Ground truth, edge cases and missing categories
Reference outcomes must match the task. Table extraction needs expected rows, columns and values; a rendering test needs approved images and meaningful regions; a preservation test needs expected document structures and content hashes. Avoid an undifferentiated “correct” flag that hides what was actually compared.
Have an independent reviewer inspect the source and reference before looking at candidate results. Record ambiguities and allowed alternatives. A date such as 04/05/26 needs a stated interpretation if the task normalises it. Where the source itself is unclear, the acceptable response may be an exception for review rather than a guessed value.
Add negative controls with known faults. A missing row, changed amount or removed attachment should trigger the intended check. Keep these derivatives labelled and separate from the representative population. Otherwise, the corpus can accidentally measure recognition of artificially damaged files while claiming to describe normal work.
Conformance checks have their own scope. veraPDF explains that its PDF/UA validation covers machine-verifiable requirements. Such a result does not replace the human checks or task-specific evidence needed for a complete accessibility or business decision. No veraPDF validation was performed on this demonstration corpus.
Maintain a requirements matrix with one row per mandatory outcome and links to supporting fixtures. A blank cell is an evidence gap. A failed mandatory case should stay visible even if many easy files pass; report routine success rates and critical failures separately rather than averaging them into a reassuring headline.
Acceptance checklist for a PDF software benchmark test corpus
Anonymisation, selection bias and authorised access
Before using real material, obtain permission for the actual evaluation route, including any external processing and retained outputs. Check embedded files, annotations, form values and metadata as well as visible page text. Removing a displayed name does not establish that every identifying element has been removed.
When sanitising a document, compare the resulting test case to the original requirement. Replacing a complex form with a flat screenshot may remove sensitive data but also remove the feature the buyer needs to evaluate. Record that limitation, or create an authorised synthetic substitute that preserves the relevant behaviour.
Release the corpus for comparison only when:
- Each file has a stable identity, known version and documented use permission.
- Required tasks have explicit reference outcomes and reviewers.
- Selection covers observed workflows, including material exceptions.
- Missing categories and uncertain references are visible.
- Candidate products receive equivalent inputs, instructions and permitted assistance.
- Tuning examples and held-out evaluation cases are distinguishable.
- Negative controls are labelled and cannot inflate the independent sample count.
- Sensitive inputs and outputs have an agreed access and retention route.
Reject a corpus change that quietly removes a difficult file after a candidate fails it. If a reference is wrong, correct it transparently, retain the earlier version and rerun every affected candidate under the revised condition.
Maintain a versioned evaluation corpus
Change history and repeatable execution conditions
Freeze a release containing the manifest, inputs, references, permissions and coverage notes. Record additions, removals and reference corrections in the next version. A checksum change should trigger investigation rather than an automatic baseline update.
Keep execution conditions alongside the corpus version: product build, enabled modules, operating system, fonts, language settings and task instructions. For timing comparisons, separately agree the hardware, network, caching and repetition method. The eight-page demonstration supplies no performance benchmark.
Review coverage when new document generators, languages or business processes appear. Retain past releases so a changed result can be attributed to the corpus, the software or the environment instead of being lost in simultaneous updates.
Use this manifest as the starting structure for a controlled evaluation. Add permitted examples from the organisation's actual workflows, appoint reference reviewers and resolve mandatory coverage gaps before treating the resulting comparison as a purchasing decision.
Create Synthetic PDFs for a Fair Product Test
Create synthetic files that reproduce the behaviours under test while keeping confidential source material outside the shared evaluation corpus.
Read “Create Synthetic PDFs for a Fair Product Test”.
Version a PDF test dataset
Record which fixture version and acceptance rule produced each benchmark result so later changes do not erase the comparison.
Read “Version a PDF test dataset”.
Separate routine and edge-case benchmark results
Report routine and edge-case performance separately. A high combined pass rate can conceal a failed task that matters to the decision.
Read “Separate routine and edge-case benchmark results”.
Update a corpus after a new document type appears
Add a newly encountered document type to a versioned extension of the corpus so earlier benchmark results remain reproducible.
Read “Update a corpus after a new document type appears”.
Sources
- Gebru and colleagues: Datasheets for Datasets, primary paper abstract and publication metadata.
- veraPDF: Validation.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex). The linked articles were drafted with NotebookLM and independently checked and edited by Kairos (Codex).
