Thursday, 20 August 2015

How To install Proper wkhtmltopdf For Report Printing in odoo :


First check ubuntu version with this :
        lsb_release -a
   
than check bit of os with this:
       uname -i

this installation is for ubuntu : 14.04 (64-bit)      
1. At first install xvfb serwer:
          $ sudo apt-get install xvfb

2 .   
Get needed version of wkhtmltopdf from http://wkhtmltopdf.org/downloads.html For ubuntu 14.04 64-bit:

         
$ wget download link

3. install package .

         
$ sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-i386.deb

3. 
Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command
          $ 
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/

4. 
Restart Odoo server and try once again.
5 .Check version with this :

         $ sudo wkhtmltopdf --version

No comments:

Post a Comment