Skip to content
PDF Accessibility

PDF language not set: how to fix it

One setting tells a screen reader which voice and pronunciation rules to use.

How do I set the language of a PDF?

Set the document language in the PDF catalog (the Lang entry), for example en-US or es. In Adobe Acrobat Pro go to File > Document Properties > Advanced and choose the language under Reading Options. Passages in a different language should also get their own language on the relevant tags.

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 set the language of a PDF

  1. Set the language in the source. In Word select the text and use Review > Language > Set Proofing Language, so the export carries the correct language.
  2. Set the document language in Adobe Acrobat Pro. Open File > Document Properties > Advanced, and under Reading Options choose the Language. Save the file.
  3. Mark passages in other languages. In the Accessibility Tags panel, open the properties of the tag that contains the passage and set its Language.
  4. Re-check. Run the checker again and listen to a page to confirm the right voice is used.

What the failure means

Screen readers and text-to-speech engines switch voices and pronunciation rules based on the declared language. If a PDF does not declare one, the software falls back to the user's default, so a Spanish brochure may be read with English pronunciation and become almost impossible to follow. Braille translation tables also depend on the language.

The fix is a short code such as en, en-US, fr-CA or de, stored in the document catalog's Lang entry. Individual tags can carry their own Lang value for quotes, names or sections in another language, which matters for bilingual documents.

Who it affects and the rules

Screen reader users, braille readers and people using read-aloud for dyslexia or low literacy are affected. 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 changes within the document. W3C techniques PDF16 and PDF19 describe how. PDF/UA-1 (ISO 14289-1) 7.2 requires the natural language to be determinable, covered by Matterhorn checkpoint 11 (Declared Natural Language).

How our fixer sets the language

The automatic fixer detects the dominant language of the text and writes it to the catalog. Where it detects a clear passage in a different language, such as a Spanish paragraph in an English notice, it can tag that passage too and flags it for review. Language detection is reliable for full paragraphs and less so for short phrases or names, so the review editor lets you correct it. Setting the main language is one of the fixes we treat as fully automatic.

Sources

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

Frequently asked questions

Which code should I use, en or en-US?

Either is valid. A two-letter code is enough for most documents; add the region if spelling or pronunciation differ meaningfully.

What if my document is bilingual?

Set the main language at document level and mark the other language on its sections or paragraphs.

Is this the same as the primary language checker error?

Yes, it is the same underlying issue. See our page on the primary language failure for the checker-specific explanation.

Does the language affect OCR?

Yes. OCR engines use the language to recognize words correctly, so set the OCR language before recognizing scanned pages.