How to upgrade wkhtmltopdf 0.12.2.4 in odoo using ubuntu?

10.5k views Asked by At

I wanted to print barcode for a product in odoo10.
For this barcode is not printing because in my ubuntu 14.04, 16.04 wkhtmltopdf version is 0.12.0, it is changes to 0.12.2.4 version barcode is print. But I have use so many commands to update the version of wkhtmltopdf, it is not effected.

Please any one help to update this version..

Thank you very much for your time and assistance in this matter.

1

There are 1 answers

3
Jainik Patel On

First setup you have to do Uninstall the wkhtmltopdf package:

sudo apt-get remove wkhtmltopdf --purge

Now Second Step Install Stable Wkhtmltopdf Version Navigate to a temporary directory:

cd /tmp

Download the recommended version of wkhtmltopdf for Odoo server. In this example, we use 0.12.1. See the Odoo repository for an up-to-date list of compatible versions:

sudo wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

Install the package using dpkg:

sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

To ensure wkhtmltopdf functions properly, copy the binaries to a location in your executable path:

sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Note: While wkhtmltopdf version 0.12.2.4 is available in the official Ubuntu 16.04 repository, we don’t advise installing it from there due to the large number of dependencies including: xserver, gstreamer, libcups, wayland, qt5 and many more. There isn’t an official Xenial package from the project page yet, but the Trusty package from Ubuntu 14.04 is compatible as of this publication.

=================== You want Unstable version then you can get it from here:

https://github.com/wkhtmltopdf/wkhtmltopdf/releases