This question has been flagged
2 Replies
11262 Views

I am working on odoo15 and install it in my windows and got the following warning:
'Unable to find Wkhtmltopdf on this system.' How can I resolve it?

Avatar
Discard
Best Answer

Install wget utility package

sudo apt update
sudo apt install wget

Install wkhtmltopdf on Ubuntu:

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb

sudo apt-get install -f


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015


Avatar
Discard

It Worked for Me! Thanks

Best Answer

Hi @Abdus Sattar Bhuiyan

Install wget package

sudo apt update
sudo apt install wget

Wkhtmltopdf package install on ubuntu:

sudo apt-get install -y wkhtmltopdf

this command install an outdated wkhtmltopdf and odoo generate a wrong pdf (with 0 byte ) and popup error saying to update to the new wkhtmltopdf.


The solution is to upgrade ” wkhtmltopdf ” For ubuntu 64-bit.

(1)Download wkhtmltopdf version from WKHTMLTOPDF depending on your system arch (32 or 64 bit

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

(2) Install the downloaded package as:-

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

(3) Copy files as:-

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

(4) Restart Odoo server and then try again.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard