As you may know, wkhtmltopdf is a tool that is used to create a pdf on the fly from the Linux/Unix shell from any html document
Step 1 is to create a html document
Step 2 is to call wkhtmltopdf with the html document as input and pdf as output
But, before that, we need to install wkhtmltopdf in the Linux server machine.
Install wkhtmltopdf in Centos 7
Before we install wkhtmltopdf, we need to install the dependencies or support packages, which are required for wkhtmltopdf to work as expected.
So, we execute the following steps.
i. sudo yum install -y xorg-x11-fonts-75dpi
ii. sudo yum install -y xorg-x11-fonts-Type1
Let us get the rpm package from the link gna.org using the link below.
sudo rpm -Uvh wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
error: Failed dependencies:
libXext is needed by wkhtmltox-1:0.12.2.1-1.x86_64
libXrender is needed b…