Skip to Content
Menu
This question has been flagged
1 Reply
7146 Views

Hi,

We are on Odoo 10 Enterprise Edition.

On a new install, when printing any PDF report, we are getting the error : Format error: Not a PDF or corrupted. An empty PDF file is generated (0 kb).

This is our first install on CENTOS server, we have followed this procedure : https://www.rosehosting.com/blog/install-odoo-10-on-centos-7-with-apache-as-a-reverse-proxy/

We looked at the wkhtmltopdf tool and we think is installed correctly (using version 0.12)

We also tried a new libray wkhtmltopdf.x86_64, still does not work.

Thanks for your comment!

Avatar
Discard
Author Best Answer

even if centos 7 as a more recent version of the package we still need to remove the new version and take the old one from the archive.

I'm not 100% sure about the link but it doest hurt ;-)

 

rpm -e wkhtmltopdf-0.12.1-1.el7.x86_64

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm

yum install ./wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm

ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 15
2488
4
Jun 24
613
2
Mar 24
781
0
Nov 22
1557
0
Sep 17
3993