OpenERP and the wkhtmltopdf printing/generating error
At work we’re trying to use OpenERP for writing invoices.
The installation was pretty fine.
After installing a webkit module for the invoice templates, we would like to test them by print a test invoice.
If you select the Button „Print Invoice“ you will see the standard invoice template of OpenERP.
For generating an invoice with the new template you have to use the button „Printing“ and than „Invoice“ (like a drop down menu).
But this will fail with an error.
'Webkit error', "The command 'wkhtmltopdf' failed with error code = 1.
Message: The following diagnosis message was provided: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.wkhtmltopdf: cannot connect to X server "
.oO They dont really need a fully X Server on a webserver for generating an invoice.
Ok, so i read the manual of wkhtmltopdf (source from Debian Wheezy apt repo) and found this:
Reduced Functionality:
This version of wkhtmltopdf has been compiled against a version of QT without
the wkhtmltopdf patches. Therefore some features are missing, if you need
these features please use the static version.
Currently the list of features only supported with patch QT includes:
* Printing more then one HTML document into a PDF file.
* Running without an X11 server.
* Adding a document outline to the PDF file.
* Adding headers and footers to the PDF file.
* Generating a table of contents.
* Adding links in the generated PDF file.
* Printing using the screen media-type.
* Disabling the smart shrink feature of webkit.
DAMN!!!
Ok, surfing to the maintainer website and there i found another package (Download)
After downloading and unpacking this package to /usr/bin/wkhtmltopdf i did a restart of openerp and did another printing job.
Successfully!
OpenERP is now generating a clean invoice with the webkit template.
Kthxbai.
Schreibe einen Kommentar
Du musst angemeldet sein, um einen Kommentar abzugeben.