Skip to content

[Bug]: Invalid glyph id used in composite glyph #20368

@ftaffelt

Description

@ftaffelt

Attach (recommended) or Link to PDF file

missing-glyph.pdf

Web browser and its version

Chrome 141.0.7390.108

Operating system and its version

Windows 11

PDF.js version

5.4.296

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

Open attached PDF in PDF Viewer shows only empty boxes

What is the expected behavior?

Renders all glyphs.

What went wrong?

console.log:

content_script_bundle.js:1 Attempting initialization Thu Oct 16 2025 13:55:51 GMT+0200 (Mitteleuropäische Sommerzeit)
app.js:1734 PDF 110dd61fd57444010b1ab5ff38782f0f [1.4 pdfeTeX-1.21a / TeX] (PDF.js: 5.4.336 [745e42701])
app.js:1734 PDF c5901b9d4264066fb9b92b3cb10d4434 [1.7 PDF Export 8.5.7.265.2507062319 / -] (PDF.js: 5.4.336 [745e42701])
font_loader.js:386 OTS parsing error: glyf: Invalid glyph id used in composite glyph: 280
glyf: Error validating component points and depth.
glyf: Failed to parse table
createNativeFontFace @ font_loader.js:386
util.js:391 Warning: Failed to load font 'g_d1_f1': 'SyntaxError: Invalid font data in ArrayBuffer.'.
warn @ util.js:391

Link to a viewer

No response

Additional context

Older versions (and other PDF products) render the PDF, albeit the broken glyphs are missing or rendered incomplete (small german umlauts missing the ", or missing altogether).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions