odoowkhtmltopdfbitnamivmware-workstationodoo-15

Install The Wkhtmltopdf Extension issue in Odoo 15 Packaged By Bitnami


Install The Wkhtmltopdf Extension issue in Odoo 15 Packaged By Bitnami For Windows / Linux / MacOS / OS X VM

I got this error when using odoo 15 on VMware workstation 16

Error / issue image | screenshot

this is what the error shows in my odoo web interf

Report 

Unable to find Wkhtmltopdf on this system. 
The report will be shown in html.<br><br><a
 href="http://wkhtmltopdf.org/"
 target="_blank">wkhtmltopdf.org</a>

anyone can help with this isse ?


Solution

  • I got the same error when using odoo 15 on VMware workstation 16 pro

    to be specific :

    bitnami_odoo-15.0.202111010-0-linux-debian-10-x86_64-nami - VMware Workstation
    

    Issue when you try to print the pdf :

    wkhtmltopdf issue bitnami odoo 15

    Report 
    
    Unable to find Wkhtmltopdf on this system. 
    The report will be shown in html.<br><br><a
     href="http://wkhtmltopdf.org/"
     target="_blank">wkhtmltopdf.org</a>
    
    




    (If you didn't try the documentation method , I think that you should try it first )
    If you are following the Bitnami by VMware Documentation and it didn't work for you , like in my case then ...

    first , start your odoo 15 on your vm and login :

    use the following command after you login : sudo -s

    Follow these tutorials all of them worked well for me :

    WKHtmlToPdf
    To print reports, odoo generates an html, send it to wkhtmltopdf which is in charge of the html->pdf transformation.

    $ sudo apt install libxrender1 fontconfig
    $ wget http://nightly.odoo.com/deb/xenial/wkhtmltox-0.12.1_linux-trusty-amd64.deb
    $ wget http://ftp.fr.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u3_amd64.deb
    $ sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb
    $ sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
    
    

    enter image description here



    Step 6: Installing Wkhtmltopdf Odoo uses wkhtmltopdf to convert the html reports into pdf format. But all the versions of wkhtmltopdf does not support odoo. Here is the process to install the supported version for a system with 64 bit architecture. First download the package for installation:

    wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
    

    Once the package is downloaded install it and copy the files accordingly:

    dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
    
    
    sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
    sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
    
    




    when you are done , restart your vm and it should work ✅✅