wkhtmltopdf patched qt?

北城以北 提交于 2019-11-30 17:58:58
m3rg

First check out the source

 git clone git://gitorious.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt
 cd wkhtmltopdf-qt
 git checkout 4.8.4
 QTDIR=. ./bin/syncqt

Qt must be configured, a good set of configuration options for qt can found by looking at the output of

cat ../wkhtmltopdf/static_qt_conf_base ../wkhtmltopdf/static_qt_conf_linux | sed -re 's/#.*//'
cd wkhtmltopdf-qt
./configure -nomake tools,examples,demos,docs,translations -opensource -prefix "../wkqt"

And Qt compiled and installed (this will take a while)

make -j3 && make install
cd ..

You must now run qmake in the wkhtmltopdf folder.

cd wkhtmltopdf
../wkqt/bin/qmake

Archived Google Code link.

Go http://wkhtmltopdf.org/downloads.html and download appropriate build. Its already patched with QT.

wkhtmltopdf --help
    or
wkhtmltopdf -V

should show

Description:
  Converts one or more HTML pages into a PDF document, using wkhtmltopdf patched qt.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!