codex - 💡(How to fix) Fix Codex Desktop PDF preview drops Chinese labels for PDFs using unembedded KaiTi/SimHei fonts

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

No personally identifiable document or screenshot is attached here because the original file contains private invoice/travel information.

RAW_BUFFERClick to expand / collapse

Environment

  • Codex Desktop: 26.513.4821.0
  • OS: Windows
  • Surface: Codex Desktop built-in artifact/PDF preview

Problem

A PDF renders correctly in external Windows PDF viewers, but Codex Desktop's built-in PDF preview drops some Chinese labels. Table lines, QR code, amounts, and many field values remain visible, while some Chinese field labels disappear.

No personally identifiable document or screenshot is attached here because the original file contains private invoice/travel information.

Observed PDF characteristics

The missing labels appear to use unembedded Chinese fonts:

  • /KaiTi, /UniGB-UCS2-H, no ToUnicode
  • /SimHei, /UniGB-UCS2-H, no ToUnicode

Other embedded/subset fonts render correctly.

The same Windows machine has Chinese fonts installed, including simhei.ttf and simkai.ttf, and external PDF viewers render the file correctly.

Codex preview behavior observed locally

The Codex Desktop bundle appears to use PDF.js for the preview. The preview code path appears to call PDF.js roughly as getDocument({ data }), without obvious explicit cMapUrl, standardFontDataUrl, or related font/CMap configuration in the preview wrapper.

Expected behavior

Codex Desktop PDF preview should match external Windows PDF viewers / browser PDF viewer behavior and should not drop Chinese field labels.

Actual behavior

Chinese field labels using unembedded /KaiTi or /SimHei fonts disappear in the Codex Desktop PDF preview, while table structure, QR code, numeric values, and other text remain visible.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Codex Desktop PDF preview should match external Windows PDF viewers / browser PDF viewer behavior and should not drop Chinese field labels.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop PDF preview drops Chinese labels for PDFs using unembedded KaiTi/SimHei fonts