PDF Accessibility Checker › Common problems

Primary language failed: how to set the language of a PDF

Your PDF doesn’t say what language it is written in, so a screen reader may read it with the wrong pronunciation. Here is what the error means and how to set the language.

Where you saw this error

Adobe Acrobat
“Primary language – Failed” (Accessibility Checker, under Document)
PAC
Failures under PDF/UA › Natural language (text, alternative text or metadata without a language)
Our report and veraPDF
PDF/UA-1 (ISO 14289-1) 7.2, test 34 (text in the page content) and 7.2, tests 2 and 21–33 (bookmarks, alternative text, metadata and form fields)

What the error means

Screen readers switch voice and pronunciation by language. They take the language from the PDF: the document language in the catalog (for example “en-US” or “de-DE”), or a language set on a part of the content. If neither is set, the reader guesses or uses its default, so an English reader may read a German document with English pronunciation, and the other way round.

PDF/UA requires a language for all text, including alternative text, bookmarks and form field descriptions. Setting the document language usually covers all of them.

Common causes

  • The document language wasn’t set in the source, or the export didn’t carry it over.
  • PDF tools and generators that never write a language.
  • Pages merged from documents in different languages.

How to find text without a language

  • Our report: upload your PDF in the box on this page. We say whether the document has a language, and list the text without one, page by page.
  • Acrobat: File › Properties › Advanced › Reading Options › Language.

How to fix it at the source

  • Word: select all text, then Review › Language › Set Proofing Language, and choose the language. Word writes it into the PDF when you export with “Document structure tags for accessibility”.
  • InDesign: set the language in the paragraph styles (Advanced Character Formats › Language).
  • For passages in another language, set that language on just those paragraphs.

How to fix it in Acrobat Pro

  1. File › Properties › Advanced › Language: choose the document language.
  2. For a passage in another language, select its tag in the Tags panel › Properties › Language.
  3. Save, and run the Accessibility Checker again.

What our AI fix does for this error

It detects the language from the text of the document (or from the first page’s image when there is no text) and sets it as the document language, which covers the text, the alternative text, the bookmarks and the metadata. A passage in a second language keeps the document language; mark it in Acrobat if it matters.

How our automatic fix works

Upload your PDF in the box on this page. You get a free report of every accessibility problem we find, page by page. If the file can be fixed automatically, the report shows a “See if our AI can fix it” button.

The fix rebuilds the tag tree of the whole document: reading order, headings, lists, tables, links, the title and the language, descriptions for images and links, and darker or lighter text where the contrast is too low. Then we test the fixed file again with the same checks.

Trying the fix is free. If the fixed file passes the PDF/UA-1 tests, you can download it for $10 + $0.25 per page. If it doesn’t pass, you pay nothing.

What the fix can’t do yet: scanned PDFs (pages that are only pictures of text), files with missing fonts other than the standard PDF fonts, and descriptions (tooltips) for fillable form fields. It also replaces the whole tag tree, so if your file has carefully hand-edited tags, fix the problem in Acrobat instead.

Our check uses veraPDF, so its results can differ a little from PAC’s or Acrobat’s. A person should still check that the reading order makes sense and that image descriptions say what the images show.

Frequently asked questions

Do I need “en-US”, or is “en” enough?

Either is valid. A country code (en-US, en-GB, de-DE) helps screen readers choose the right accent and spelling; the plain language code is enough for PDF/UA.

Does fixing this change how my PDF looks?

No. Tags, descriptions, the title and the language are invisible: they describe the content for assistive technology. The only visible change our fix can make is darker or lighter text where its contrast is too low.

How much does the automatic fix cost?

Checking your PDF and trying the fix are free. If the fixed file passes the PDF/UA-1 tests, you can buy the download for $10 + $0.25 per page. If it doesn’t pass, you pay nothing.

PAC, Acrobat and your checker give different results. Which one is right?

They test different details. PAC and our checker (veraPDF) test against PDF/UA, the ISO standard for accessible PDF; Acrobat’s checker has its own rules and passes some things PDF/UA fails. If you need PDF/UA, go by a PDF/UA checker.

Is my file kept private?

Yes. Your file is stored privately for the check and the fix only, is never made public or shared, and is deleted automatically within 24 hours. It is never used to train AI.

Other PDF accessibility errors

Fix a PDF ↑