Welcome to PotatoCommerce - Top Quality Magento Extensions Store

HomeBlog › How to install Wkhtmltopdf

How to install Wkhtmltopdf for "Invoice Customizer"?

Posted on 14 June 2016


What is Wkhtmltopdf?

Wkhtmltopdf is an open source command line tool to render HTML into PDF using the Qt WebKit rendering engine. It is used by used by Invoice Customizer extension for Magento.

 

How to install Wkhtmltopdf?

Step-by-step installation examples for CentOS (versions 6.7 and 7) and Ubuntu operating systems:

Wkhtmltopdf for Centos 6.7

yum install -y xorg-x11-fonts-75dpi;
yum install -y xorg-x11-fonts-Type1;
wget https://downloads.wkhtmltopdf.org/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm
rpm -Uvh wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm;
wkhtmltopdf http://www.google.com google.pdf;



wkhtmltopdf for centos 6.7

wkhtmltopdf for centos 6.7

 

 

Wkhtmltopdf for Centos 7


yum install fontconfig libXrender libXext xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi freetype libpng zlib libjpeg-turbo;
wget https://downloads.wkhtmltopdf.org/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm;
rpm -Uvh wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm

yum install Xvfb;
xvfb-run /usr/bin/wkhtmltopdf http://www.google.com google.pdf

 

 

Wkhtmltopdf for Ubuntu 15.04

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-i386.deb;
sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-i386.debbr;
sudo apt-get -f install;
/usr/local/bin/wkhtmltopdf http://www.google.com google.pdf;


wkhtmltopdf for Ubuntu

wkhtmltopdf or Ubuntu