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
- Apryse, How to Validate PDF/UA Compliance – PDF/UA-2, published in 2024, aligns accessibility requirements with PDF 2.0; veraPDF and PAC can verify compliance. Checked 2026-11-29.
- Generating accessible tagged PDFs from HTML: WCAG 2.2 and PDF/UA-2 – veraPDF supports PDF/UA-1 (–flavour ua1) and PDF/UA-2 (–flavour ua2); a compliant file returns isCompliant: true. Checked 2026-11-29.
