Odoo - OpenERP - (latest working) How to Install wkhtmltopdf on Ubuntu 14.04 ?

Support
Support
5000
| 2 1 2
Asked on 8/25/15, 3:15 PM
0
vote
3155 Views

Option-1 - If need clean install run below (recommended)

sudo apt-get --purge remove wkhtmltopdf
sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo 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
sudo chown root:root /usr/bin/wkhtmltopdf
sudo chmod +x /usr/bin/wkhtmltopdf
sudo chown -R odoo: *
sudo chmod -R 775 *

Option-1 - Install Wkhtmltopdf through executable script

Open up your Ubuntu terminal and create a new .sh file

sudo nano wkhtmltopdf_install.sh

Now add the following code in it:

    echo -e "\n---- Install WkHtmlToPdf 0.12.1 ----"

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

    cd Downloads

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

    cd /usr/local/bin

    sudo cp wkhtmltoimage /usr/bin/wkhtmltoimage

    sudo cp wkhtmltopdf /usr/bin/wkhtmltopdf

    echo -e "Wkhtmltopdf is installed!"

The next step is to make the file executable

sudo chmod +x wkhtmltopdf_install.sh

And finally, now it is executable, execute it.

./wkhtmltopdf_install.sh

After the script is done you will see some lines - wkhtmltopdf is installed!
After restarting your Odoo/Ubuntu you will be able to use Wkhtmltopdf and print PDF files.

 

Support
Support
5000
| 2 1 2
Answered on 8/25/15, 3:32 PM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.

Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 8/25/15, 3:15 PM
Seen: 3155 times
Last updated: 8/25/15, 3:32 PM