PDF/UA-2, published in 2024, is the accessibility standard for PDF 2.0 files, and it is not a simple superset of PDF/UA-1: a file can pass one part and fail the other. veraPDF is the open-source validator for both parts, with –flavour ua1 and –flavour ua2. This guide validates one PDF against PDF/UA-2.
Prerequisites
veraPDF installed and a tagged PDF to check. Work on a copy of the file.
Steps
1. Check the veraPDF install
Run verapdf –version in a terminal. Expected result: a version number prints.
2. Validate against PDF/UA-2
Run verapdf –flavour ua2 –format json report.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 tagged annual report, PDF 2.0
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 | Two rule IDs recorded |
Expected result. the JSON report is written, isCompliant reads false, and two failed rules are recorded: a missing document title and a figure without alt text.
Limits
- veraPDF checks the rules a machine can test; it cannot tell whether alt text is meaningful, so a pass still needs a human read-through.
- 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.
