Lekt logo Lekt
ISO_14289_1:7.2-34 Tier-1 Deterministic Auto-Fix (0px Visual Diff)

ISO_14289_1:7.2-34: Natural Language for Page Content Cannot Be Determined (Missing /Lang)

This error occurs when the PDF Catalog lacks a valid /Lang entry, preventing assistive technologies like NVDA, JAWS, and VoiceOver from determining the document's natural language. The absence of /Lang can lead to incorrect text-to-speech rendering and hinder accessibility. Lekt resolves this with a tier1_auto fix by setting a valid BCP-47 language code on the Catalog /Lang key at 0px visual diff.

veraPDF Rule ID
ISO_14289_1:7.2-34
Validated Object
SETextItem
Matterhorn 1.1
11-001 (Machine)
Validation Profiles
PDFUA-1 + WCAG-2.2-MACHINE
PDF/UA-2 Equivalent
ISO_14289_2:8.4.4-1 (PDDocument)
Lekt v1.8.2 Mode
1-Click Safe Auto-Fix & BCP-47 Language Picker

1. Official Rule Definition & Machine Verification Evidence

Official veraPDF XML Definition: Natural language for text in page content shall be determined
Machine Test Predicate: gContainsCatalogLang == true || Lang != null
Verbatim Error Message: Natural language for text in page content cannot be determined
Observed veraPDF 1.30.4 Corpus Context XPath: root/document[0]/pages[0](3 0 obj PDPage)/contentStream[0](9 0 obj PDSemanticContentStream)/content[1]{mcid:0}/contentItem[0]{mcid:0}

The error is triggered by the absence of a valid /Lang key in the PDF Catalog dictionary, which is required by ISO 14289-1 clause 7.2. The test expression `gContainsCatalogLang == true || Lang != null` evaluates to false when the /Lang key is missing or invalid. The /Lang key is a PDF/UA-1 requirement and is part of the WCAG 2.2 Machine profile. It ensures that screen readers and other assistive technologies can correctly interpret the language of the text content. The absence of this key violates the normative requirement for determining the natural language of the document.

2. Minimal Reproducible PDF Structure (Before vs. After)

The error is triggered when the PDF Catalog dictionary does not contain a valid /Lang entry. This is evident in the live_verapdf_evidence where the XPath `root/document[0]/pages[0](3 0 obj PDPage)/contentStream[0](9 0 obj PDSemanticContentStream)/content[1]{mcid:0}/contentItem[0]{mcid:0}` indicates a failure due to missing language metadata. The test_expression fails because `gContainsCatalogLang` is false and `Lang` is null.

Fails ISO_14289_1:7.2-34
1 0 obj
<<
  /Type /Catalog
  /Pages 2 0 R
  /MarkInfo 3 0 R
  /Lang null
>>
endobj
Compliant PDF Structure
1 0 obj
<<
  /Type /Catalog
  /Pages 2 0 R
  /MarkInfo 3 0 R
  /Lang (en-US)
>>
endobj

3. Common Authoring Triggers & Checker Differences

Adobe Acrobat

Exporting to PDF without specifying a language in the accessibility settings or using the 'Save As PDF' feature without enabling accessibility options.

Microsoft Word

Exporting to PDF without setting the document language in the 'Language' section of the 'Proofing' tab before conversion.

LaTeX

Using the `hyperref` package without specifying the `pdfusetitle` or `pdfcreator` options that include language metadata.

PAC 2024 vs. Adobe Acrobat Full Check vs. veraPDF 1.30.4: PAC 2024 and Adobe Acrobat Full Check do not natively validate the /Lang key in the PDF Catalog for WCAG 2.2 compliance, whereas veraPDF 1.30.4 explicitly checks for the presence of a valid /Lang key under the WCAG-2.2-MACHINE profile. This rule is part of the PDF/UA-1 specification and is enforced strictly by veraPDF, making it essential to validate with veraPDF for full compliance.

4. Manual Remediation Steps

In Adobe Acrobat Pro

  1. Open the PDF in Adobe Acrobat Pro DC.
  2. Go to 'File' > 'Properties' > 'Description' tab.
  3. Under 'Language', select the appropriate language from the dropdown or type a valid BCP-47 code (e.g., en-US).

In Upstream Source Tools (Word / InDesign / LaTeX)

  1. In Microsoft Word, go to 'File' > 'Options' > 'Language'.
  2. Set the editing language to the desired language and click 'Set as Default'.
  3. Export the document to PDF using 'File' > 'Save As' > 'PDF' with accessibility options enabled.

5. Offline Verification & Remediation in Lekt (Zero Cloud Uploads)

Honest Capability Scope (Tier-1 Deterministic Auto-Fix (0px Visual Diff)): Lekt assigns a valid RFC 3066 / BCP-47 language code (e.g., en-US, es-ES, fr-CA, de-DE) on the PDF Catalog /Lang key and normalizes malformed subtags (such as en_US) at 0px visual diff.
  1. Open the PDF in Lekt.
  2. Navigate to the 'Language' section in the accessibility inspector.
  3. Select the appropriate BCP-47 language code (e.g., en-US, es-ES) from the dropdown or type it manually.
  4. Click 'Apply' to update the /Lang key in the PDF Catalog.

Frequently Asked Questions

What is the correct format for the /Lang key in PDF/UA-1?

The /Lang key must be a valid BCP-47 language tag, such as 'en-US' for English (United States) or 'es-ES' for Spanish (Spain).

Can I use a two-letter language code like 'en' instead of 'en-US'?

No, PDF/UA-1 requires a full BCP-47 language tag with region subtag to ensure precise language identification.

Does Lekt modify the visual appearance of the PDF when fixing the /Lang key?

No, Lekt applies the fix at the PDF Catalog level without altering the visual content, ensuring a 0px visual diff.

Check & Verify ISO_14289_1:7.2-34 100% Offline

Run unlimited PDF/UA-1, PDF/UA-2, and WCAG 2.2 checks locally on macOS Apple Silicon or Windows x64 via embedded veraPDF 1.30.4 — zero FERPA/HIPAA cloud uploads, plus Free Watermarked Proof PDF export to verify 0 errors in PAC 2024 before paying.

Related PDF/UA & WCAG Error Guides