PDF export renders CJK (Chinese/Japanese/Korean) characters as '#' as no CJK font bundled

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      When a ProForma form contains Chinese (CJK) characters, the PDF export renders them as # or missing glyphs (blank/tofu). The XLSX export works correctly for the same form.

      Steps to Reproduce

      1. Create a ProForma form with fields containing Chinese characters (e.g., 请输入您的姓名)
      1. Attach the form to a Jira issue
      1. Fill in the form with text and create the issue
      1. Open the newly created issue → from the “Forms“ section → Export the form as PDF/Rich PDF (⋮ → Download PDF)

      Expected Results

       Chinese characters render correctly in the PDF

      Actual Results

       Chinese characters appear as blank/missing glyphs. Jira logs show:
       

      2026-05-21 07:40:17,795+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      2026-05-21 07:40:17,800+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      2026-05-21 07:40:17,860+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "请" (0x8bf7) not available in font "Arimo".
      2026-05-21 07:40:17,861+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "输" (0x8f93) not available in font "Arimo".
      2026-05-21 07:40:17,863+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "入" (0x5165) not available in font "Arimo".
      2026-05-21 07:40:17,863+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "您" (0x60a8) not available in font "Arimo".
      2026-05-21 07:40:17,864+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "的" (0x7684) not available in font "Arimo".
      2026-05-21 07:40:17,865+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "姓" (0x59d3) not available in font "Arimo".
      2026-05-21 07:40:17,867+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "名" (0x540d) not available in font "Arimo".
      2026-05-21 07:40:17,869+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Glyph "尼" (0x5c3c) not available in font "Arimo".
      2026-05-21 07:40:17,873+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Font "Arimo-Regular,normal,700" not found. Substituting with "Arimo-Regular,normal,400".
      2026-05-21 07:40:17,873+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] Font "NotoNaskhArabic-Regular,normal,700" not found. Substituting with "NotoNaskhArabic-Regular,normal,400".
      2026-05-21 07:40:17,878+0000 proforma-actor-system-pf.dispatcher.mdc-272 WARN      [o.a.fop.apps.FOUserAgent] The contents of fo:region-before on page 1 exceed the available area in the block-progression direction by 99212 millipoints. (No context info available) 

      The cause is likely that the plugin uses Apache FOP 2.3 for PDF generation and bundles only Latin (Arimo) and Arabic (NotoNaskhArabic) fonts in its fonts/ directory. No CJK font is included. FOP's system font auto-detection (<auto-detect/>) is not enabled, so OS-installed CJK fonts are also not used.

       

      Suggested Fix :

      • Bundle a CJK font (e.g., NotoSansSC-Regular.ttf) in fonts/ and register it with the FOP FontInfo configuration : consistent with how Arabic support was added
      • Enable FOP's <auto-detect/> font scanning to use system-installed fonts as fallback
      • Expose a font configuration option (admin UI or external fop.xconf path) for customer-managed fonts

      Workaround

      Use XLSX export instead of PDF for forms containing CJK content however this is not an option for the portal users.

              Assignee:
              Thomas Farr
              Reporter:
              Nikhil Janardhanan
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: