如何运行wkhtmltopdf无头?!在Debian Whezzy上安装apt-get install wkhtmltopdf命令wkhtmltopdf --title $SUBJECT -q $SOURCEFILE $OUTPUTFILE错误QXcbConnection: Could not connect to display解决方法:这是a ...

如何运行wkhtmltopdf无头?!
在Debian Whezzy上安装
apt-get install wkhtmltopdf
命令
wkhtmltopdf --title "$SUBJECT" -q $SOURCEFILE $OUTPUTFILE
错误
QXcbConnection: Could not connect to display
解决方法:
这是a bug,修复程序尚未提交到Debian存储库.引用ashkulz(谁关闭了错误报告):
You’re using the version of wkhtmltopdf in the debian repositories, which does not support running headless.
所以你可以……
> Download wkhtmltopdf from source并编译它(参见the INSTALL.md file中的说明;如果已经安装了Qt 4.8,可以从他们的git clone行中删除–recursive选项).
>在xvfb,as suggested by masterkorp in the bug report中运行它.
本文标题为:linux – wkhtmltopdf – QXcbConnection:无法连接到显示器


- CKEditor编辑器allowedContent过滤器规则设置教程 2022-06-22
- 简单谈谈margin负值的作用 2022-11-13
- ajax详解_动力节点Java学院整理 2023-02-14
- 用CSS打造 抽屉菜单 2022-11-04
- Servlet 与 Ajax 交互一直报status=parsererror的解决办法 2023-01-31
- 如何在vue项目里面展示 pdf文件 2023-10-08
- Vue框架基础——迈出第一步 2023-10-08
- Ajax上传文件进度条Codular 2023-02-01
- TypeScript中函数重载写法 2023-08-11
- CocosCreator Typescript制作俄罗斯方块游戏 2023-08-08