Tuesday 25 September 2018

How to install Wkhtmltopdf for Odoo 11 on Ubuntu 17

1 Download the deb file for the wkhtmltopdf library
    1. sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
    2 Download the Libpng12 library
    1. wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
    3 Install the Libpng12 library
    1. sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb
    4 Install now the wkhtmltopdf deb file
    1. sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
    5 Copy the binary files to the bin locations:
    1. sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
    2. sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
    6 Restart Odoo Server, (You may need to refresh Odoo on your Browser to start downloading PDF reports)
    1. service odoo restart

    No comments:

    Post a Comment