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.
ISO_14289_1:7.2-34SETextItem1. Official Rule Definition & Machine Verification Evidence
gContainsCatalogLang == true || Lang != nullNatural language for text in page content cannot be determinedroot/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.
1 0 obj
<<
/Type /Catalog
/Pages 2 0 R
/MarkInfo 3 0 R
/Lang null
>>
endobj
1 0 obj
<<
/Type /Catalog
/Pages 2 0 R
/MarkInfo 3 0 R
/Lang (en-US)
>>
endobj
3. Common Authoring Triggers & Checker Differences
Exporting to PDF without specifying a language in the accessibility settings or using the 'Save As PDF' feature without enabling accessibility options.
Exporting to PDF without setting the document language in the 'Language' section of the 'Proofing' tab before conversion.
Using the `hyperref` package without specifying the `pdfusetitle` or `pdfcreator` options that include language metadata.
4. Manual Remediation Steps
In Adobe Acrobat Pro
- Open the PDF in Adobe Acrobat Pro DC.
- Go to 'File' > 'Properties' > 'Description' tab.
- 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)
- In Microsoft Word, go to 'File' > 'Options' > 'Language'.
- Set the editing language to the desired language and click 'Set as Default'.
- Export the document to PDF using 'File' > 'Save As' > 'PDF' with accessibility options enabled.
5. Offline Verification & Remediation in Lekt (Zero Cloud Uploads)
- Open the PDF in Lekt.
- Navigate to the 'Language' section in the accessibility inspector.
- Select the appropriate BCP-47 language code (e.g., en-US, es-ES) from the dropdown or type it manually.
- 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.