Skip to content

[Bug] serveral tools converted faulty pdf after converting Chinese included markdown because no corresponding font was found #547

Open

Description

@olivertzeng

Describe the bug
convert .md to .pdf converted into nothingness because of pandoc's Chinese character parsing

To Reproduce
Steps to reproduce the behavior:

  1. convert 山機英.md
## 就讀動機(P):中山電機 英語組

### 一、英語作為獲取技術的工具

我的英語能力並非來自考卷,而是為了解決問題自然累積的工具。從國二閱讀全英文的 Arch Wiki 獨立安裝系統,到在 GitHub 上與各國 maintainer 協作、解釋 Bash 環境的相容性 Bug,高強度的技術交流環境讓我在沒有特別準備下取得 TOEIC 960 分與學測英文 15 級分。

### 二、底層技術探索與國際接軌

在家中 WiFi 驅動程式工程師父親的影響下,我對系統底層運作原理充滿好奇。在自架 Arch Linux 伺服器與維護十多個 Docker 容器的過程中,我發現最核心的硬體規格書與前沿技術討論永遠只有英文。但「能讀 Arch Wiki」跟「能讀 IEEE 論文或 datasheet 裡的電路符號與規格定義」是兩回事。我的英文能力目前停留在軟體層的技術文件,對電機領域的專業英文(元件規格、電路分析符號、學術論文寫作)幾乎沒有接觸。這正是我需要 EMI 環境的原因:不是「練英文」,而是用英文學習我還不會的電機專業知識。

### 三、為何選擇中山電機(英語組)

中山電機英語組提供全英語授課環境,並配備 TA 課輔、英語校外企業參訪(台達電子、智崴 i-Ride 飛行劇院等),以及外籍生交流活動。這些資源讓英語不只是授課語言,而是融入整個學習生活的溝通工具。

我計畫入學後完全鎖定 EMI 全英語課程,並積極爭取國際交換計畫,將所學的電機知識放到跨國工程環境中驗證。期望能善用五年學碩士雙學位的機會,畢業後成為在跨國團隊中工作的橋樑工程師,用流利外語與歐美頂尖開源社群共同制定硬體技術規格。

英語組還提供學碩雙聯學位與姊妹校交換計畫,結合五年取得學碩士雙學位的獎學金制度。我期望善用這些國際化資源,在中山電機扎實的硬體訓練基礎上,成為具備全球協作能力的系統級工程師。
  1. See the pdf with blank value
Image

Checklist:

  • I am accessing ConvertX over HTTPS or have HTTP_ALLOWED=true

Activity

  1. olivertzeng commented on Mar 22, 2026

    @olivertzeng
    Author

    Alternative to the current thing is to convert to docx with pandoc and then convert it into pdf

  2. changed the title [-][Bug] .md to .pdf converts into nothing if it's Chinese characters[/-] [+][Bug] serveral tools contains blank pdf after converting[/+] on Mar 22, 2026
  3. olivertzeng commented on Mar 22, 2026

    @olivertzeng
    Author

    Reproduced conversion tools:

    .md to .pdf with pandoc
    .docx to .pdf with calibre
    .docx to .pdf with libreoffice
    .docx to .pdf with pandoc

    Image
  4. changed the title [-][Bug] serveral tools contains blank pdf after converting[/-] [+][Bug] serveral tools contains blank or faulty pdf after converting[/+] on Mar 22, 2026
  5. olivertzeng commented on Mar 22, 2026

    @olivertzeng
    Author

    Alternative to the current thing is to convert to docx with pandoc and then convert it into pdf

    the second step docx to pdf was converted with google docs

  6. olivertzeng commented on Mar 22, 2026

    @olivertzeng
    Author

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.
    ...

    l.21 \subsubsection{三
    、為何選擇中山電機(英語組)}\label{ux4e09ux70baux4f55ux9078ux64c7ux4...

    Missing character: There is no 三 ("4E09) in font nullfont!
    Missing character: There is no 、 ("3001) in font nullfont!
    Missing character: There is no 為 ("70BA) in font nullfont!
    Missing character: There is no 何 ("4F55) in font nullfont!
    Missing character: There is no 選 ("9078) in font nullfont!
    Missing character: There is no 擇 ("64C7) in font nullfont!
    Missing character: There is no 中 ("4E2D) in font nullfont!
    Missing character: There is no 山 ("5C71) in font nullfont!
    Missing character: There is no 電 ("96FB) in font nullfont!
    Missing character: There is no 機 ("6A5F) in font nullfont!
    Missing character: There is no ( ("FF08) in font nullfont!
    Missing character: There is no 英 ("82F1) in font nullfont!
    Missing character: There is no 語 ("8A9E) in font nullfont!
    Missing character: There is no 組 ("7D44) in font nullfont!
    Missing character: There is no ) ("FF09) in font nullfont!

    Overfull \hbox (20.0pt too wide) in paragraph at lines 21--22
    [][]

    ! LaTeX Error: Missing \begin{document}.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.
    ...

    l.23 中
    山電機英語組提供全英語授課環境,並配備 TA
    Missing character: There is no 中 ("4E2D) in font nullfont!
    Missing character: There is no 山 ("5C71) in font nullfont!
    Missing character: There is no 電 ("96FB) in font nullfont!
    Missing character: There is no 機 ("6A5F) in font nullfont!
    Missing character: There is no 英 ("82F1) in font nullfont!
    Missing character: There is no 語 ("8A9E) in font nullfont!
    Missing character: There is no 組 ("7D44) in font nullfont!
    Missing character: There is no 提 ("63D0) in font nullfont!
    Missing character: There is no 供 ("4F9B) in font nullfont!
    Missing character: There is no 全 ("5168) in font nullfont!
    Missing character: There is no 英 ("82F1) in font nullfont!
    Missing character: There is no 語 ("8A9E) in font nullfont!
    Missing character: There is no 授 ("6388) in font nullfont!
    Missing character: There is no 課 ("8AB2) in font nullfont!
    Missing character: There is no 環 ("74B0) in font nullfont!
    Missing character: There is no 境 ("5883) in font nullfont!
    Missing character: There is no , ("FF0C) in font nullfont!
    Missing character: There is no 並 ("4E26) in font nullfont!
    Missing character: There is no 配 ("914D) in font nullfont!
    Missing character: There is no 備 ("5099) in font nullfont!
    Missing character: There is no T ("54) in font nullfont!
    Missing character: There is no A ("41) in font nullfont!
    Missing character: There is no 課 ("8AB2) in font nullfont!
    Missing character: There is no 輔 ("8F14) in font nullfont!
    Missing character: There is no 、 ("3001) in font nullfont!
    Missing character: There is no 英 ("82F1) in font nullfont!
    Missing character: There is no 語 ("8A9E) in font nullfont!
    Missing character: There is no 校 ("6821) in font nullfont!
    Missing character: There is no 外 ("5916) in font nullfont!
    Missing character: There is no 企 ("4F01) in font nullfont!
    Missing character: There is no 業 ("696D) in font nullfont!
    Missing character: There is no 參 ("53C3) in font nullfont!
    Missing character: There is no 訪 ("8A2A) in font nullfont!
    Missing character: There is no ( ("FF08) in font nullfont!
    Missing character: There is no 台 ("53F0) in font nullfont!
    Missing character: There is no 達 ("9054) in font nullfont!
    Missing character: There is no 電 ("96FB) in font nullfont!
    Missing character: There is no 子 ("5B50) in font nullfont!
    Missing character: There is no 、 ("3001) in font nullfont!
    Missing character: There is no 智 ("667A) in font nullfont!
    Missing character: There is no 崴 ("5D34) in font nullfont!
    Missing character: There is no i ("69) in font nullfont!
    Missing character: There is no - ("2D) in font nullfont!
    Missing character: There is no R ("52) in font nullfont!
    Missing character: There is no i ("69) in font nullfont!
    Missing character: There is no d ("64) in font nullfont!
    Missing character: There is no e ("65) in font nullfont!
    Missing character: There is no 飛 ("98DB) in font nullfont!
    Missing character: There is no 行 ("884C) in font nullfont!
    Missing character: There is no 劇 ("5287) in font nullfont!
    Missing character: There is no 院 ("9662) in font nullfont!
    Missing character: There is no 等 ("7B49) in font nullfont!
    Missing character: There is no ) ("FF09) in font nullfont!
    Missing character: There is no , ("FF0C) in font nullfont!
    Missing character: There is no 以 ("4EE5) in font nullfont!
    Missing character: There is no 及 ("53CA) in font nullfont!
    Missing character: There is no 外 ("5916) in font nullfont!
    Missing character: There is no 籍 ("7C4D) in font nullfont!
    Missing character: There is no 生 ("751F) in font nullfont!
    Missing character: There is no 交 ("4EA4) in font nullfont!
    Missing character: There is no 流 ("6D41) in font nullfont!
    Missing character: There is no 活 ("6D3B) in font nullfont!
    Missing character: There is no 動 ("52D5) in font nullfont!
    Missing character: There is no 。 ("3002) in font nullfont!
    Missing character: There is no 這 ("9019) in font nullfont!
    Missing character: There is no 些 ("4E9B) in font nullfont!
    Missing character: There is no 資 ("8CC7) in font nullfont!
    Missing character: There is no 源 ("6E90) in font nullfont!
    Missing character: There is no 讓 ("8B93) in font nullfont!
    Missing character: There is no 英 ("82F1) in font nullfont!
    Missing character: There is no 語 ("8A9E) in font nullfont!
    Missing character: There is no 不 ("4E0D) in font nullfont!
    Missing character: There is no 只 ("53EA) in font nullfont!
    Missing character: There is no 是 ("662F) in font nullfont!
    Missing character: There is no 授 ("6388) in font nullfont!
    Missing character: There is no 課 ("8AB2) in font nullfont!
    Missing character: There is no 語 ("8A9E) in font nullfont!
    Missing character: There is no 言 ("8A00) in font nullfont!
    Missing character: There is no , ("FF0C) in font nullfont!
    Missing character: There is no 而 ("800C) in font nullfont!
    Missing character: There is no 是 ("662F) in font nullfont!
    Missing character: There is no 融 ("878D) in font nullfont!
    Missing character: There is no 入 ("5165) in font nullfont!
    Missing character: There is no 整 ("6574) in font nullfont!
    Missing character: There is no 個 ("500B) in font nullfont!
    Missing character: There is no 學 ("5B78) in font nullfont!
    Missing character: There is no 習 ("7FD2) in font nullfont!
    Missing character: There is no 生 ("751F) in font nullfont!
    Missing character: There is no 活 ("6D3B) in font nullfont!
    Missing character: There is no 的 ("7684) in font nullfont!
    Missing character: There is no 溝 ("6E9D) in font nullfont!
    Missing character: There is no 通 ("901A) in font nullfont!
    Missing character: There is no 工 ("5DE5) in font nullfont!
    Missing character: There is no 具 ("5177) in font nullfont!
    Missing character: There is no 。 ("3002) in font nullfont!

    Overfull \hbox (20.0pt too wide) in paragraph at lines 23--26
    []

    ! LaTeX Error: Missing \begin{document}.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.
    ...

    l.27 我
    計畫入學後完全鎖定 EMI
    Missing character: There is no 我 ("6211) in font nullfont!
    Missing character: There is no 計 ("8A08) in font nullfont!
    Missing character: There is no 畫 ("756B) in font nullfont!
    Missing character: There is no 入 ("5165) in font nullfont!
    Missing character: There is no 學 ("5B78) in font nullfont!
    Missing character: There is no 後 ("5F8C) in font nullfont!
    Missing character: There is no 完 ("5B8C) in font nullfont!
    Missing character: There is no 全 ("5168) in font nullfont!
    Missing character: There is no 鎖 ("9396) in font nullfont!
    ...
    Missing character: There is no 統 ("7D71) in font nullfont!
    Missing character: There is no 級 ("7D1A) in font nullfont!
    Missing character: There is no 工 ("5DE5) in font nullfont!
    Missing character: There is no 程 ("7A0B) in font nullfont!
    Missing character: There is no 師 ("5E2B) in font nullfont!
    Missing character: There is no 。 ("3002) in font nullfont!
    )
    ! Emergency stop.
    <*> ./data/uploads/1/33/山機英.tex

    No pages of output.
    Transcript written on data/output/1/33/山機英.log.
    Latexmk: Getting log file 'data/output/1/33/山機英.log'
    Latexmk: Examining 'data/output/1/33/山機英.fls'
    Latexmk: Examining 'data/output/1/33/山機英.log'
    Latexmk: Log file says no output from latex
    Latexmk: For rule 'xelatex', no output was made
    Latexmk: Summary of warnings from last run of *latex:
    =====Latex reported missing or unavailable character(s).
    =====See log file for details.
    Latexmk: Errors, so I did not complete making targets
    Collected error summary (may duplicate other messages):
    xelatex: Command for 'xelatex' gave return code 1
    Refer to 'data/output/1/33/山機英.log' and/or above output for details

    ENOENT: no such file or directory, open './data/output/1/33/山機英.pdf'
    path: "./data/output/1/33/山機英.pdf",
    syscall: "open",
    errno: -2,
    code: "ENOENT"

    ENOENT: no such file or directory, open './data/output/1/33/山機英.pdf'
    path: "./data/output/1/33/山機英.pdf",
    syscall: "open",
    errno: -2,
    code: "ENOENT"

    jobId set to: 34
    stderr: [WARNING] Unusual conversion: to convert a .tex file to PDF, you get better results by using pdflatex (or lualatex or xelatex) directly, try pdflatex ./data/uploads/1/34/���������.tex instead of pandoc ./data/uploads/1/34/���������.tex -o ./data/output/1/34/���������.pdf.
    [WARNING] Missing character: There is no 就 (U+5C31) (U+5C31) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 讀 (U+8B80) (U+8B80) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 動 (U+52D5) (U+52D5) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 機 (U+6A5F) (U+6A5F) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no ( (U+FF08) (U+FF08) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no ) (U+FF09) (U+FF09) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no : (U+FF1A) (U+FF1A) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 中 (U+4E2D) (U+4E2D) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 山 (U+5C71) (U+5C71) in font [lmroman12-bold]:mapping=tex-
    Converted ./data/uploads/1/34/山機英.tex from latex to pdf successfully using pandoc. Done
    [WARNING] Missing character: There is no 電 (U+96FB) (U+96FB) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 機 (U+6A5F) (U+6A5F) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 英 (U+82F1) (U+82F1) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 語 (U+8A9E) (U+8A9E) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 組 (U+7D44) (U+7D44) in font [lmroman12-bold]:mapping=tex-
    [WARNING] Missing character: There is no 一 (U+4E00) (U+4E00) in font [lmroman10-bold]:mapping=tex-
    ...
    [WARNING] Missing character: There is no 。 (U+3002) (U+3002) in font [lmroman10-regular]:mapping=t

    i see now

  7. changed the title [-][Bug] serveral tools contains blank or faulty pdf after converting[/-] [+][Bug] serveral tools converted faulty pdf after converting Chinese included markdown because no corresponding font was found[/+] on Mar 22, 2026
  8. olivertzeng commented on Mar 22, 2026

    @olivertzeng
    Author

    I think ConvertX should let the user customize the font or even the .sty file to customize latex conversion
    And the default font should be Noto Sans CJK font

  9. C4illin commented on Mar 23, 2026

    @C4illin
    Owner

    Making Noto Sans CJK default sounds like a very good suggestion! It supports all other languages as well right?

  10. olivertzeng commented on Mar 23, 2026

    @olivertzeng
    Author

    Making Noto Sans CJK default sounds like a very good suggestion! It supports all other languages as well right?

    Yes

    But would it be better if I can have a custom settings.sty, and have a full texlive installation to not have any issues with missing libraries

  11. olivertzeng commented on Mar 23, 2026

    @olivertzeng
    Author

    Meaning that it automatically adds a \usepackage{settings} into latex if the user has set it(the auto-add usepackage should be optional) if it's already in the file don't add this line

    This applies even when the user didn't explicitly set the settings.sty in the settings to set a default that tries to work with all users(like usepackage for enumerators, math etc... basically all packages to prevent breakage)

    Of course the user can choose to just turn this settings off and then ConvertX would not be doing the "auto-add" thing

    This is probably a breaking change tbh so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions