Sri Software
ABN:45612647971
sales@srisoftware.com

Install wkhtmltopdf





Install wkhtmltopdf reference from http://wkhtmltopdf.org/downloads.html

Step 1: Preparation


Login to your CentOS machine. Make sure that you have root access. It is up to you on how you gain a root access by logging in directly as root user or do an su - command.


Step 2: Install Dependencies


Now that I mentioned it, there are two items needed in order to install the wkhtmltopdf:


1.xorg-x11-fonts-Type1
2.xorg-x11-fonts-75dpi


Install the two items with the following command
yum install -y xorg-x11-fonts-75dpi yum install -y xorg-x11-fonts-Type1


Step 3: Install wkhtmltopdf


Next, download the wkhtmltopdf

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz


Next, download the wkhtmltopdf RPM file.
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm


link to download directly http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm


Alternatively, if your computer is a 32-bit architecture, you may download the 32-bit version available in the Downloads page of the said site.
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-i386.rpm

After the file has been downloaded, run the command:
rpm -Uvh wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm


And if for the 32-bit computers, run the command instead:
rpm -Uvh wkhtmltox-0.12.2.1_linux-centos6-i386.rpm

NOTE : if you run using php then write font-weight:bold in css style.

  • playstore