Validate a PDF against PDF/UA with veraPDF
veraPDF · Windows, Mac, Linux · Last updated
Part of training module 17: Going further with checking: PDF/UA validators and screen reader checks
veraPDF is a free, open-source validator that tests whether a PDF follows the PDF/UA rules, and it gives a pass or fail result for each rule.
Steps
- Install veraPDF and start it. For the graphical version, run verapdf-gui.bat on Windows, or verapdf-gui on a Mac or Linux computer, from the install folder.
- Select Choose PDF, or drag the file into the area labelled PDF file not chosen.
- In the profile list, choose PDF/UA-1. The Auto-detect option picks a profile from the file's metadata, so it may not test PDF/UA unless the file already claims it.
- Leave the task on Validation.
- Select Execute to run the check.
- Read the result. For a readable report, select Save HTML and open the saved file. For a report that other software can read, select Save XML.
- If you prefer the command line, run the program with the profile code ua1 and the file name, for example
verapdf -f ua1 report.pdf. Add--format textfor plain text output.
Check it worked
- The report shows a pass or a fail for the profile you chose, and a fail comes with details.
- Each failure points to a clause and test, so you can look up the cause.
- You have run a second check after fixing, and the failures are gone.
Common mistakes
- Leaving the profile on automatic detection for a file that does not claim PDF/UA. Choose the profile yourself.
- Reading a pass as proof of accessibility. veraPDF tests technical conformance; it cannot judge alt text, reading order or contrast. See WCAG 2.1 AA and PDF/UA: what each one covers.
- Expecting it to check WCAG. The profiles listed cover PDF/A and PDF/UA, not WCAG.
- Skipping a human review. Follow with Do a five-minute screen reader check with NVDA or the VoiceOver version.
Related guides
The same task in other applications
- Add the PDF/UA identifier in Acrobat, and when not to
- Run the PDF/UA syntax check in Acrobat Preflight
- Check a PDF against PDF/UA with PAC
- Read a PAC report and decide what to fix