Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Not get wkhtmltopdf rendering Chinese characters #1778

Open
jzoy opened this issue Nov 14, 2019 · 2 comments
Open

Can Not get wkhtmltopdf rendering Chinese characters #1778

jzoy opened this issue Nov 14, 2019 · 2 comments

Comments

@jzoy
Copy link

@jzoy jzoy commented Nov 14, 2019

Describe the bug
Hey guys, I'm using bookstack with wkhtmltopdf plugin.
I did lots of reserch but still cannot get wkhtmltopdf to rendering chinese characters.

Steps To Reproduce
Steps to reproduce the behavior:

  1. tried to use Dompdf not working
  2. tried to install wkhtmltopdf and upload msyh.ttf & simsun.ttc fonts to /usr/share/fonts/ folder not working
  3. tried to install chinese fonts still not working
$ sudo apt-get install ttf-wqy-zenhei     
$ sudo apt-get install ttf-wqy-microhei
  1. tested use wkhtmltopdf command line " wkhtmltopdf www.baidu.com baidu.pdf", and download baidu.pdf file, it works well.

Expected behavior
Could any tell me how to set the font, Thanks a lot!!

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings):0.25.1(docker:linuxserver/bookstack)
  • PHP Version:7.2
  • Hosting Method (Docker): traefik 2.0
@or0or1

This comment has been minimized.

Copy link

@or0or1 or0or1 commented Nov 16, 2019

@jzoy

This comment has been minimized.

Copy link
Author

@jzoy jzoy commented Nov 16, 2019

太感谢了,可以解释一下问题产生的原因吗,折腾了一个星期了,愣是没解决。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.