When exporting PDF file, Chinese is in disorder #1593

Closed
opened 2026-02-05 01:21:24 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @wzhz on GitHub (Mar 16, 2020).

Describe the bug
I found that when I export a file in PDF format, there is a garbled code in Chinese

Steps To Reproduce
Steps to reproduce the behavior:

  1. Write Chinese page
  2. Open authored page
  3. Click export function and select export PDF file

Expected behavior
It should show the effect consistent with the page

Screenshots
Look at accessories

Your Configuration (please complete the following information):

  • I deployed the service through docker

Enclosure
Garbled file

Originally created by @wzhz on GitHub (Mar 16, 2020). **Describe the bug** I found that when I export a file in PDF format, there is a garbled code in Chinese **Steps To Reproduce** Steps to reproduce the behavior: 1. Write Chinese page 1. Open authored page 1. Click export function and select export PDF file **Expected behavior** It should show the effect consistent with the page **Screenshots** Look at accessories **Your Configuration (please complete the following information):** - I deployed the service through docker **Enclosure** [Garbled file](https://wzhz.xyz/download/%E5%A6%82%E4%BD%95%E7%A7%91%E5%AD%A6%E7%9A%84%E5%9C%A8docker-container%E4%B8%AD%E8%BF%90%E8%A1%8C%E5%A4%9A%E4%B8%AA%E6%9C%8D%E5%8A%A1.pdf)
OVERLORD added the 🏭 Back-End🚚 Export System:cat2:🐈 Possible duplicate labels 2026-02-05 01:21:24 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 17, 2020):

Thanks for raising @wzhz. I believe this is essentially due to the same thing as issue #719 so I'll close this.

In short: it's tricky for us to support all font options for the default PDF rendering system in an efficient manner. BookStack does support an alternative PDF rendering system (WKHTMLtoPDF) which can be trickier to set-up (Especially in docker environments) but has much better UTF8 support & and more accurate page rendering.

@ssddanbrown commented on GitHub (Mar 17, 2020): Thanks for raising @wzhz. I believe this is essentially due to the same thing as issue #719 so I'll close this. In short: it's tricky for us to support all font options for the default PDF rendering system in an efficient manner. BookStack does support an alternative PDF rendering system ([WKHTMLtoPDF](https://www.bookstackapp.com/docs/admin/pdf-rendering/)) which can be trickier to set-up (Especially in docker environments) but has much better UTF8 support & and more accurate page rendering.
Author
Owner

@wzhz commented on GitHub (Mar 17, 2020):

感谢您提出@wzhz。我认为这本质上是与问题#719相同的缘故,因此我将关闭它。

简而言之:对于我们而言,要有效地支持默认PDF呈现系统的所有字体选项是很棘手的。BookStack确实支持替代的PDF呈现系统(WKHTMLtoPDF),该系统设置起来比较麻烦(尤其是在docker环境中),但具有更好的UTF8支持和更准确的页面呈现。

Thank you very much for your reply

@wzhz commented on GitHub (Mar 17, 2020): > 感谢您提出@wzhz。我认为这本质上是与问题[#719](https://github.com/BookStackApp/BookStack/issues/719)相同的缘故,因此我将关闭它。 > > 简而言之:对于我们而言,要有效地支持默认PDF呈现系统的所有字体选项是很棘手的。BookStack确实支持替代的PDF呈现系统([WKHTMLtoPDF](https://www.bookstackapp.com/docs/admin/pdf-rendering/)),该系统设置起来比较麻烦(尤其是在docker环境中),但具有更好的UTF8支持和更准确的页面呈现。 Thank you very much for your reply
Author
Owner

@ghost commented on GitHub (Feb 12, 2021):

I also encountered the same problem, using English can export pdf perfectly, but using Chinese seems to be unable to render, I am using the latest version 0.31.6 Ubuntu 20.04

@ghost commented on GitHub (Feb 12, 2021): I also encountered the same problem, using English can export pdf perfectly, but using Chinese seems to be unable to render, I am using the latest version 0.31.6 Ubuntu 20.04
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1593