Normfluss

This guide is written for UK and European readers. In the United States? See ADA Title II, Section 504 and Section 508 →

Standard

WCAG for PDFs: what applies, and how to meet it

WCAG, the Web Content Accessibility Guidelines, is the W3C's standard for accessible digital content. Despite the name, it is not only about websites: its success criteria describe what a person must be able to get from content, such as "every meaningful image has a text alternative", and that applies to anything read on a screen, PDFs included. This page explains which parts matter most for a PDF, how a PDF meets them, and how to check one.

Does WCAG apply to PDFs?

Yes. WCAG is written to work for any technology, and the W3C publishes a set of techniques written for PDF documents. The rules that use WCAG apply it to documents too: in Europe, the harmonised standard EN 301 549 applies WCAG's criteria to non-web documents in its Chapter 10, and in the US, the ADA Title II and Section 504 web rules count PDFs posted on a website as web content. Which rule applies to you is a separate question. The criteria a PDF is measured against are WCAG's.

Which level?

Every success criterion has a level: A, AA or AAA. Level AA includes every Level A criterion, and it is the level laws and policies most often cite. AAA is the highest, and is rarely asked of whole documents.

The criteria that matter most for a PDF

Each with its WCAG number and name, what it means for a PDF, and the W3C technique that shows how:

  • 1.1.1 Non-text Content: every meaningful image, chart or logo has a text description, and decoration is marked so it is skipped (techniques PDF1 and PDF4).
  • 1.3.1 Info and Relationships: headings, lists and tables are tagged as headings, lists and tables, so their structure can be heard, not only seen (PDF9, PDF21 and PDF6).
  • 1.3.2 Meaningful Sequence: the content is tagged in the order it should be read (PDF3).
  • 1.4.3 Contrast (Minimum): text stands out from its background, at a contrast ratio of at least 4.5:1, or 3:1 for large text.
  • 1.4.5 Images of Text: text is real text, not a picture of text; a scanned page needs text recognition (PDF7).
  • 2.4.2 Page Titled: the document has a title that says what it is (PDF18).
  • 2.4.4 Link Purpose (In Context): each link says where it goes and is tagged as a link (PDF11 and PDF13).
  • 3.1.1 Language of Page: the document declares the language it is written in (PDF16).
  • 3.1.2 Language of Parts: a passage in another language declares its own (PDF19).
  • 4.1.2 Name, Role, Value: every form field has a name, a role and a state that assistive technology can read (PDF10 and PDF12).

Others apply when a document has what they are about: forms and links that work with a keyboard alone (2.1.1 Keyboard), labels and instructions on form fields (3.3.2 Labels or Instructions), and errors that are identified in text (3.3.1 Error Identification).

How a PDF meets them: tags

A web page meets these criteria through its HTML. A PDF meets them through its tags, the hidden structure that tells assistive technology what each part of the page is. That is why almost every PDF technique starts from a tagged document, and why PDF/UA, the ISO standard for accessible PDFs, matters: it sets out how the file must be built, which is the groundwork for most of these criteria. WCAG says what the reader must get; PDF/UA says how the file provides it.

The techniques are examples, not rules

The W3C says plainly that its techniques are examples of ways to meet WCAG and are not required: a PDF can meet a criterion another way. They are still the clearest guide to what a criterion asks of a PDF, and to what checkers look for.

How to make a PDF meet WCAG

  • Start in the source file: real heading styles, list formatting, table header rows, descriptions on images, a document title and language, and enough contrast.
  • Export with tags, choosing the option that keeps the document's structure.
  • Run the PDF through an accessibility checker and fix what fails.
  • Have a person review what a machine cannot judge: whether each description is right, whether the reading order makes sense, whether link text is clear.
  • For a form, try filling it in with the keyboard alone, and with a screen reader.

What a machine can check, and what it cannot

A machine can tell whether an image has a description, whether the document has a title and a language, whether form fields have names and whether the structure is valid. It cannot tell whether a description is accurate, or whether the reading order makes sense for a complicated layout. Those take a person, which is why no automated check on its own shows that a PDF meets WCAG.

How Normfluss checks for it

The free Normfluss check runs PDF/UA-1's automatic checks, through veraPDF, and from them decides the parts of WCAG 2.2 AA that apply to PDFs and that a machine can decide: whether images have descriptions, the document a title and a language, form fields a name, and whether headings, lists and tables are tagged correctly. Each failure is named with its WCAG criterion and the pages it is on. What needs a person, such as whether a description is right, is listed for review, not passed. The result is evidence of what was tested, not a certificate that the PDF conforms to WCAG.

Frequently asked questions

Does WCAG apply to PDF documents?
Yes. WCAG's success criteria apply to any content read on a screen, and the W3C publishes techniques written for PDFs. In Europe, EN 301 549 applies WCAG's criteria to non-web documents such as PDFs, and the US web rules for state and local governments and HHS-funded programs count PDFs on a website as web content.
What WCAG level should a PDF meet?
Level AA, which includes every Level A criterion, is the level laws and policies most often cite. Which version of WCAG a given rule names varies, so check the rule that applies to you.
What are the WCAG PDF techniques?
A set of techniques the W3C publishes, numbered PDF1 onwards, showing how to meet WCAG success criteria in a PDF: for example PDF1 for image descriptions, PDF9 for headings and PDF18 for the document title. The W3C says they are examples of ways to meet WCAG, not requirements.
Can a scanned PDF meet WCAG?
Not as a scan: a scanned page is an image of text, which a screen reader cannot read. It needs text recognition (OCR), then tags, a title, a language and descriptions on its images, and then checking like any other PDF.
Is PDF/UA-1 the same as WCAG?
No. WCAG says what a person must be able to get from content; PDF/UA-1 (ISO 14289-1) says how a PDF file must be built to provide it. They overlap heavily, and a PDF is usually checked against both.

Related