This question has been flagged
6 Replies
37105 Views

Hello ! I use a Community version of Odoo v11 on a 1&1 server using bitnami. I need some help to install Wkhtmltopdf. PDF prints (quotations...) are not working.

I tried this :

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz 
sudo cp ./wkhtmltox/bin/wkhtmltoimage /usr/bin/
sudo cp ./wkhtmltox/bin/wkhtmltopdf /usr/bin/
sudo sudo /opt/bitnami/ctlscript.sh restart

Taken here : https://community.bitnami.com/t/wkhtmltopdf-not-installing/51686/2

Not working...

I use Filezilla or putty to connect (I'm beginner, I don't know very well what I'm doing with those things)

I thank you in advance, I'm lost !


Avatar
Discard
Best Answer

Hello, 

You need to upgrade the version of Wkhtmltopdf library on your server.

Kindly refer the following blog

https://webkul.com/blog/odoo-wkhtmltopdf-upgrade-version/

Thanks

Anisha Bahukhandi
Technical Content Writer
Webkul

Avatar
Discard
Best Answer

Try version 0.12.1.

to print PDF reports, you must install wkhtmltopdf yourself: the version of wkhtmltopdf available in debian repositories does not support headers and footers so it can not be installed automatically. The recommended version is 0.12.1 and is available on the wkhtmltopdf download page, in the archive section. As there is no official release for Debian Jessie, you can find ours on the extra section of our nightly server.

From http://www.odoo.com/documentation/10.0/setup/install.html


Avatar
Discard
Author

Hello Ray, I thank you for your answer, but I don't understand it. I don't know how to install a .deb file on my server. It's running on Centos 7 / bitnami.

I tried this on Putty :

wget https://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb

dpkg -i wkhtmltox-0.12.1.2_linux-jessie-amd64.deb

Server says me : [root@localhost ~]# dpkg -i wkhtmltox-0.12.1.2_linux-jessie-amd64.deb

-bash: dpkg: command not found

Between yesterday and today I tried multiple things. I did this :

yum install -y libpng

yum install -y libjpeg

yum install -y openssl

yum install -y icu

yum install -y libX11

yum install -y libXext

yum install -y libXrender

yum install -y xorg-x11-fonts-Type1

yum install -y xorg-x11-fonts-75dpi

Now, I can create PDF but the PDF is not readable : the text is replaced by signs like >>, ^, etc...

I deleted with filezilla the wkhtmltopdf files I found, manually because I didn't know how to uninstall.

Please help me ! :'(

Thanks in advance

Best Answer

You did not specify your Linux version, so you have received an answer for Ubuntu, the most popular Linux version for installing Odoo. But the point is to install version 0.12.1 instead of version 0.12.4, as you did according to your posting. If you do not run Ubuntu (or Debian for this case), you have to find out yourself how you have to install packages on your Linux distribution.

My recommendations:

1. Start again from scratch

2. Use Ubuntu 16.04 LTS, don't use anything else if you have no clue because it is the most popular and best documented OS for Odoo

3. Learn the basics about Linux, about Servers and about accessing and managing remote servers (Putty and Filezilla).

Avatar
Discard
Author

I'm sorry, I don't understand your recommandations. I can't or don't understand how to use Ubuntu 16.04 LTS. I don't even know what is Ubuntu. I rent a 1&1 server with Odoo preinstalled. This server runs in CentOS 7. I don't understand how to install wkhtmltopdf in this situation.

I'm ready to learn, but I can't learn all from zero, I need an effective ERP on the short terme.

Then simply forget it. Your wkhtmltopdf will most probably only be the first issue and if you do not know the basics, you will not be able to use Odoo in short term. Use Odoo online or Odoo Enterprise and/or go to a reasonable provider and pay for a reasonable setup. You can send me an email with some basic requirements and I can make you a quotation, for example or look for somebody else.