Install wkhtmltopdf

1.安裝wkhtmltopdf

wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
apt-get install wkhtmltox
dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb

2.編輯.env

nano /var/www/BookStack/.env

在.env的最後面加入以下設定

# In .env file
WKHTMLTOPDF=/usr/local/bin/wkhtmltopdf

3.加入中文字型

mkdir /usr/share/fonts/zh_TW

4.將附件放入/usr/share/fonts/zh_TW/這個資料夾裡面


Revision #7
Created 2 weeks ago by ishtar.lin
Updated 2 weeks ago by ishtar.lin