ISO_14289_1:7.21.7-1: Font Missing Unicode Mapping (/ToUnicode CMap)
This error occurs when a font's /ToUnicode CMap is missing, preventing character codes from mapping to Unicode. This breaks screen readers like NVDA and JAWS, making text inaccessible. Fix category: source_required. Lekt identifies the exact font and page, and guides re-export from source or offline OCR.
ISO_14289_1:7.21.7-1Glyph1. Official Rule Definition & Machine Verification Evidence
toUnicode != nullThe glyph can not be mapped to Unicoderoot/document[0]/pages[0](12 0 obj PDPage)/contentStream[0](18 0 obj PDSemanticContentStream)/operators[6]/usedGlyphs[0](JAPTCA+AboriginalSerif JAPTCA+AboriginalSerif 40 0 536671860 0 true)The Font dictionary is required to define a mapping from character codes to Unicode values, as per ISO 14289-1, clause 7.21.7. This is typically done via the /ToUnicode key, which points to a CMap. If this key is missing, the glyph cannot be decoded into a readable character, and the test expression `toUnicode != null` fails. This is a fundamental requirement for PDF/UA-1 and WCAG 2.2 compliance, ensuring that screen readers can interpret the text correctly.
2. Minimal Reproducible PDF Structure (Before vs. After)
The error is triggered when a font dictionary lacks a /ToUnicode entry. In the provided verapdf evidence, the XPath indicates a failed check on a glyph from the font 'JAPTCA+AboriginalSerif'. The absence of a /ToUnicode CMap for this font prevents the glyph from being mapped to a Unicode value, resulting in the error 'The glyph can not be mapped to Unicode'.
/Font <<
/Type /Font
/Subtype /Type0
/BaseFont /JAPTCA+AboriginalSerif
/Encoding /Identity-H
/DescendantFonts [ <<
/Type /Font
/Subtype /CIDFontType2
/BaseFont /JAPTCA+AboriginalSerif
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>>
/FontDescriptor <<
/Type /FontDescriptor
/FontName /JAPTCA+AboriginalSerif
/FontFamily (AboriginalSerif)
/FontWeight 400
/FontStretch /Normal
/ItalicAngle 0
/Ascent 905
/Descent -210
/CapHeight 715
/XHeight 450
/StemV 80
/StemH 60
>>
>> ]
>>
/Font <<
/Type /Font
/Subtype /Type0
/BaseFont /JAPTCA+AboriginalSerif
/Encoding /Identity-H
/ToUnicode 12 0 R
/DescendantFonts [ <<
/Type /Font
/Subtype /CIDFontType2
/BaseFont /JAPTCA+AboriginalSerif
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>>
/FontDescriptor <<
/Type /FontDescriptor
/FontName /JAPTCA+AboriginalSerif
/FontFamily (AboriginalSerif)
/FontWeight 400
/FontStretch /Normal
/ItalicAngle 0
/Ascent 905
/Descent -210
/CapHeight 715
/XHeight 450
/StemV 80
/StemH 60
>>
>> ]
>>
3. Common Authoring Triggers & Checker Differences
Exporting to PDF without embedding Unicode-compliant fonts or using legacy Type 1 fonts without /ToUnicode CMaps.
Using non-Unicode fonts like Symbol or Wingdings and exporting to PDF without ensuring the /ToUnicode CMap is included.
Using legacy font encodings (e.g., T1) without generating or embedding a /ToUnicode CMap.
4. Manual Remediation Steps
In Adobe Acrobat Pro
- Open the PDF in Adobe Acrobat Pro DC.
- Go to Tools > Accessibility > Fix Document Issues.
- Acrobat will not automatically fix missing /ToUnicode CMaps; you must re-export the document from the source application with Unicode-compliant fonts.
In Upstream Source Tools (Word / InDesign / LaTeX)
- In Adobe InDesign, go to File > Export > PDF.
- Ensure the 'Subset Fonts Below' option is set to 100% and 'Embed Fonts' is selected.
- Use Unicode-compliant OpenType or TrueType fonts to ensure /ToUnicode CMaps are included.
5. Offline Verification & Remediation in Lekt (Zero Cloud Uploads)
- Run Lekt's Offline veraPDF Glyph Audit to identify the exact font and page with the missing /ToUnicode CMap.
- Re-export the document from the source application (e.g., InDesign, Word) using Unicode-compliant fonts and ensure /ToUnicode CMaps are embedded.
- If the source is lost, use Lekt's offline OCR to re-tag the affected pages and attach /ActualText to icon glyphs.
Frequently Asked Questions
Can I fix this error without re-exporting from the source?
No. Missing /ToUnicode CMaps cannot be added post-export without re-embedding the font. Lekt can guide you through re-exporting from the source or using offline OCR if the source is lost.
What is the impact of this error on screen readers?
Screen readers like NVDA, JAWS, and VoiceOver will not be able to read the text if the glyphs cannot be mapped to Unicode. This makes the content inaccessible to users with visual impairments.
How can I verify that the /ToUnicode CMap is present?
Use veraPDF 1.30.4 to validate the PDF. The presence of the /ToUnicode key in the Font dictionary and a valid CMap will pass the test `toUnicode != null`.
Check & Verify ISO_14289_1:7.21.7-1 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.