Define ground truth for PDF conversion tests
14 March 2026
Freeze the expectations before opening any converter’s output. The source has two text columns, a required page break and a total that can be checked independently. A source digest identifies the input. It does not tell the reviewer what counts as a correct conversion.
Write an observable reference for each requirement
Use a permitted synthetic source and record its revision and digest. Give each column a distinctive opening and closing phrase. Name the heading that must start the next page. For the arithmetic control, use two labelled line values, for example 18 and 22, and independently record an expected total of 40 units. These figures are test inputs, not measurements from a product.
| Requirement | Frozen expectation | How to inspect the candidate |
|---|---|---|
| Two columns | Both columns remain distinct and text runs down the first before the second in the agreed reading sequence. | Check the drawn layout and compare the four marker phrases in extracted or assistive reading order. |
| Page break | The specified heading begins page two and is not stranded at the foot of page one. | Render both pages using the declared page size and settings. |
| Total | Both labelled line values keep their units. The reported total is 40. | Read the individual cells and recalculate 18 + 22 independently. |
| Visual review | A named human reviewer must inspect whether text at the gutter overlaps or becomes difficult to read. | Record the observation separately. A successful numeric test cannot pass this check. |
Define tolerances and evidence before conversion
Decide whether small positional differences are permitted. For example, a project may accept up to 1 mm of movement at a nominated landmark while requiring the section break and numbers to match exactly. That is a proposed project rule, not a universal threshold. Record how the coordinate is measured and which rendered dimensions apply. If the layout expectation itself is disputed, keep it pending rather than presenting it as established ground truth.
The corpus manifest and integrity results illustrate keeping file identity and declared references beside a test case. A manifest match can establish that the intended input was supplied, not that the candidate converter preserved its layout.
Store the frozen reference, date and reviewer with the benchmark. If the reference later proves wrong, version the correction and rescore all tools on the same basis. Do not change the tolerance only for the output that first exposed the problem.
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).
