How to check a PDF for accessibility
What an automated check can decide, and what it cannot
An accessible PDF carries a second, hidden layer: a tree of tags that says what each part of the page is. A screen reader reads the tags, not the page. Most of what makes a PDF accessible, or not, is in that layer, and a good part of it can be checked by a program.
What a checker can decide
- Is it tagged at all? No tag tree means a screen reader gets an unstructured stream of text, or nothing.
- Are the tags attached to anything? Some tools write an empty tree. It passes a glance and helps nobody.
- Is any page a scan? A page with no text is a picture of text. It needs recognising and tagging, or replacing.
- Title and language. The title the document announces, and the language a screen reader should use. A title that is a file name, such as “Microsoft Word - final_v2.docx”, counts as no title.
- Figures without alternative text, tables without header cells, links not tagged as links, and form fields without a name.
- Fonts that cannot be turned back into characters, which make a screen reader say nonsense.
- Security settings that forbid assistive technology from reading the text.
These map to WCAG 2.1 success criteria and to the clauses of PDF/UA (ISO 14289), the PDF accessibility standard. The veraPDF project publishes test files for each PDF/UA rule, which is how a checker can be held to the standard rather than to its author's reading of it.
What only a person can decide
- Reading order. Whether the tags run in the order a sighted reader would read the page.
- Whether the alternative text is right. A checker sees that a description exists, not that it describes the chart.
- Contrast inside the page content.
- Whether the tags match the meaning: a heading tagged as a heading, a table that is really a table.
A document with no automated findings is not thereby accessible. A checker is triage: it tells you which documents need work, and which problem to fix first.
Checking a whole site
One PDF at a time works for a handful. A public body usually has hundreds or thousands, linked from pages nobody has looked at in years. Document Auditor crawls the site in your browser, finds every PDF, Word, PowerPoint and Excel file, checks each one against the list above, and ranks them, without uploading anything. Its PDF checks are measured against the veraPDF test files, and its reader against the pdf.js test suite; the results are published with each release.