New Tool Radar

AI PDF

How to Validate a Scanned PDF Against PDF/A with veraPDF

Validate a scanned PDF against the PDF/A archive standard with veraPDF and read the report.

Schematic illustration of veraPDF validation: check the install, validate against PDF/A, and read the failed rules.

veraPDF is the open-source validator for the PDF/A and PDF/UA standards, maintained by the PDF Association and the Open Preservation Foundation. It checks a file against a validation profile and reports every failed rule. This guide validates one scanned PDF against PDF/A-2b.

Prerequisites

veraPDF installed and a scanned PDF, ideally one already converted to PDF/A. Work on a copy.

Steps

1. Check the veraPDF install

Run verapdf –version in a terminal. Expected result: a version number prints.

2. Validate against PDF/A-2b

Run verapdf –flavour 2b –format json scan.pdf. Expected result: a JSON report is written.

3. Read the compliance result

Open the JSON report and find isCompliant. Expected result: the report says isCompliant true, or lists the failed checks.

4. Record the failed rules by ID

Write down each failed rule ID with its message. Expected result: a list of rule IDs, or a note that the file passed.

Practice check: fictional scanned letter converted to PDF/A-2b

The table below is fictional practice material. It lists the four checks for the validation run.

Check Expected result
Version printed A version number prints
Report written JSON report exists
Compliance read isCompliant field found
Failed rules listed One rule ID recorded

Expected result. the JSON report is written, isCompliant reads false, and one failed rule is recorded: a font that is not embedded.

Limits

  • veraPDF checks the rules a machine can test; it cannot tell whether the scan image itself is readable, so check the image quality by eye as well.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

See all