How to install Wkhtmltopdf in CentOS/ RHEL/ Fedora.

wkhtmltopdf is an excellent opensource tool for converting html to PDF or an Image like JPEG, PNG etc.. It is available under GNU/GPL and written in C++ programming language. It can convert any HTML web page to PDF with Options to add Header and Footer. Also with Table of Content writing Option. It is available for both 32 and 64 bit Linux systems.

For dowloading 32bit tool use the below command.

For downloading 64bit tool use the below command.

Extract the Files:

Install the wkkhtmltopdf by moving it to /usr/local/bin

To verify the installation issue the below command

The output will look like this:

Finally Download the PDF to verify or you can install evince to view this in Linux

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

One thought on “How to install Wkhtmltopdf in CentOS/ RHEL/ Fedora.

Leave a Reply