コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3447 ビュー

Here is the error I'm getting when I try to print an report. But in my Ubuntu server I have installed "wkhtmltopdf".

Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display

アバター
破棄
最善の回答

Hello Naveen,

I solved this by download .deb package:

wget http://mirror.openminds.be/downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

and Install the package with dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

then confirm with wkhtmltopdf -V that it says "with patched qt"

Regards, please upvote my answer for karma ...


アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 25
880
1
7月 24
1364
1
5月 24
2560
1
3月 20
8479
0
2月 19
2854