The veraPDF test corpus

The test files behind the PDF/A reference implementation.

For each clause, the corpus has files that break the rule and files that satisfy it. Unlike Isartor, it catches a validator that rejects good documents. In production that is the expensive failure: valid invoices bounced, or a "fix" applied to a file that was never broken.

How gopdfrab uses it

  • Every PDF/A-1b and PDF/A-2b file runs in CI on every change.
  • The same files go through the veraPDF binary, and any disagreement fails the build.
  • Where the spec is ambiguous, the default PDFA1B profile follows the corpus, and Legacy1B keeps the strict reading.

What a corpus misses

Corpus files are clean apart from the one thing under test. Real input includes truncated uploads, broken cross-reference tables and files built to crash parsers. gopdfrab handles that with fuzzing, damage recovery and resource limits. Damage is reported, not fatal.

FAQ

What is the veraPDF test corpus?

Small PDF files from the veraPDF project, organised by clause, with passing and failing cases for each rule.

How is it different from Isartor?

Isartor only has failing files, so it only measures detection. veraPDF also has passing files, so it catches false positives.

Is the corpus enough to trust a validator?

No. Real files are bigger and more damaged than any corpus, which is why gopdfrab is also fuzzed.