コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
10091 ビュー

Does not print the pdf correctly though everything is correct and having the unpatched version of wkhtmltopdf 12.0.6

アバター
破棄
著作者 最善の回答

I got issue which was in web.base.url

Turn on debug mode 
Technical > system parameter >web.base.url 

It was like:
http:\//odoo.example.com

which should match the odoo url in the browser:
"https://odoo.example.com (Corrected)"

アバター
破棄

this was my issue too, i checked the web.base.url in staging server (cloned from prod), and it had the same url as prod so obviously it wasn't able to access the file.
it's crazy to think it's depending on the web to fetch images, i thought it was fetching them from the file system!

最善の回答

Hi,

Firstly, please check the version of wkhtmltopdf installed on your system by using the following terminal command:wkhtmltopdf --version

 To get the header and footer in the PDF reports the wkhtmltopdf with patched qt needs to be available,ie, For example:When you check the version of wkhtmltopdf like the example below, The output should include (with patched qt) along with the version number, like this:

wkhtmltopdf 0.12.5 (with patched qt)


Hope it helps

アバター
破棄
最善の回答

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb 

sudo chmod +x wkhtmltox_0.12.5-1.bionic_amd64.deb  

sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb

sudo rm ./wkhtmltox_0.12.5-1.bionic_amd64.deb

 

アバター
破棄
関連投稿 返信 ビュー 活動
3
2月 24
2648
1
3月 20
5015
1
4月 19
4841
1
7月 16
6395
1
12月 23
8085