Skip to Content
Menu
This question has been flagged
2 Replies
5087 Views

Hi!

I tried to print a quotation and I wondered why I do not see any header and footer - only the content of the quotation.

I checked also the information of the default header and footer in the company settings - everything is maintained but also the preview of the external layout shows only the content without any header / footer information.

In the settings of the system parameters I also add / create an entry like     report.url=http://ip:8069


Does someone have an idea what I maybe forgot to maintain or to activate?

Best regards

Avatar
Discard

install latest version of wkhtmltopdf ....it's should be latest...

Author Best Answer

Hi Usman,

first I installed the version wkhtmltopdf_0.12.2.4-1_amd64.de, but then I got an error -> Wkhtmltopdf failed (Error code : -6). Message : 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

Then, I read in a thread, the version wkhtmltopdf 0.12.1 (with patched qt) is needed, so I uninstall the current one with:

apt-get remove --auto-remove wkhtmltopdf

and I install this one (0.12.1) with:

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-wheezy-amd64.deb
dpkg -i  wkhtmltox-0.12.1_linux-wheezy-amd64.deb
cp /usr/local/bin/wkhtmltopdf /usr/bin
cp /usr/local/bin/wkhtmltoimage /usr/bin

Do I maybe have to use as well the following command to uninstall everything of the current installed version before to install now the latest one?

apt-get purge wkhtmltopdf





Avatar
Discard
Author

I solved the problem:

wkhtmltopdf 0.12.1 (with patched qt) is ok

Create an entry in setting -> technicals -> parameters -> systemparameters

web.base.url.freeze with value=True and change the parameters

web.base.url and report.url to http://0.0.0.0:8069

Refresh all and then the pdf report is created faster and correctly :-)

Related Posts Replies Views Activity
2
Jan 24
2459
1
Jun 23
1270
2
May 21
6419
1
Sep 24
3628
1
Mar 15
4972