Skip to main content

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

  1. 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.
  2. Select Choose PDF, or drag the file into the area labelled PDF file not chosen.
  3. 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.
  4. Leave the task on Validation.
  5. Select Execute to run the check.
  6. 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.
  7. 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 text for 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.

The same task in other applications

More for veraPDF