New Tool Radar

AI PDF

How to Validate a PDF Against the PDF/UA-2 Accessibility Standard

Validate a PDF against PDF/UA-2 with veraPDF and read the report to find the exact rules it breaks.

Schematic illustration of a PDF/UA-2 check: check the veraPDF install, validate against PDF/UA-2, and read the failed rules.

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

See all