Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5999 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả Câu trả lời hay nhất

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





Ảnh đại diện
Huỷ bỏ
Tác giả

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 :-)

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 24
4038
1
thg 6 23
2764
2
thg 5 21
7654
1
thg 9 24
4560
1
thg 3 15
6012