Skip to content
PDF Accessibility

"Primary Language - Failed" explained

The document does not say what language it is written in, so screen readers have to guess.

What does "Primary language failed" mean?

The PDF has no language declared in its catalog, so screen readers and text-to-speech may use the wrong voice and pronunciation. Fix it by setting the document language, for example en-US, in File > Document Properties > Advanced > Reading Options in Adobe Acrobat Pro, or in the source document before export.

Automatic fix: yesOur fixer resolves this automatically.· WCAG 2.2 SC 3.1.1, WCAG 2.2 SC 3.1.2, PDF/UA-1 (ISO 14289-1) 7.2, Matterhorn 11

How to fix "Primary Language - Failed"

  1. Set it in Adobe Acrobat Pro. Open File > Document Properties > Advanced and choose the language from the Language list under Reading Options. Save.
  2. Or fix it at the source. In Word select all text and use Review > Language > Set Proofing Language, then export with tags.
  3. Mark other-language passages. In the Accessibility Tags panel, open the properties of the relevant tag and set its Language.
  4. Re-check. Run the checker again; the rule should pass immediately.

What the checker is telling you

The check looks for a Lang entry in the document catalog. When it is missing or empty, the rule fails. Some validators also fail individual text elements when no language can be determined for them, which happens when neither the document nor any parent tag declares one.

This is one of the quickest failures to fix and one of the most noticeable when left alone: a French document read with English rules sounds like nonsense, and a braille display may use the wrong translation table.

Who it affects and the clauses

Screen reader users, braille readers and users of read-aloud features. WCAG 2.x SC 3.1.1 Language of Page (Level A) requires the default language to be programmatically determinable, and SC 3.1.2 Language of Parts (Level AA) covers passages in another language. W3C techniques PDF16 and PDF19 describe the Lang entry. PDF/UA-1 (ISO 14289-1) 7.2 requires the natural language to be determinable, which is Matterhorn checkpoint 11 (Declared Natural Language).

Common causes

The language is usually lost or never set, rather than set wrongly.

  • The source document's proofing language was not set or was set to "Do not check spelling"
  • Print to PDF or generators that do not write a language
  • Scanned documents, which have no language until OCR and tagging
  • Merged PDFs where the first file had no language

Does our fixer resolve it?

Yes. The automatic fixer detects the dominant language and writes it to the catalog, and can tag clear passages in other languages. You can change the detected language in the review editor. See the general guide to setting PDF language for more on bilingual documents.

Sources

This page is general information, not legal advice. Automated checks cannot prove full compliance; some requirements need human review.

Frequently asked questions

Why does the check fail even though I can see the language is English?

Software cannot reliably guess language from text. It needs the explicit Lang value in the file.

Does the language need a region code?

No. en is valid. en-US or en-GB are also fine and can help with pronunciation.

What if the document mixes languages?

Set the main language at document level and mark other-language sections on their tags.

Can I set the language for a whole folder of PDFs?

Yes. Our API and website scanner can fix language across batches, with detection per file.

Will fixing language change the text?

No. It only adds a setting. The visible content stays the same.