How To Install wkhtmltopdf In CentOS 7.0


On the previous post, the tutorial is almost the same, but this is for CentOS 7.0.


This tutorial intends for the people who, at least, have knowledge in CentOS.

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 RPM file.


As of the published date, there is no 32-bit version of the said tool available for download. After the file has been downloaded, run the command:

rpm -Uvh wkhtmltox-

Step 4: Testing

And now for the test. Run the command (and make sure that the computer is accessible to internet):

wkhtmltopdf google.pdf

During the generation, it will show something like this:

Loading pages (1/6)
Counting pages (2/6) 
Resolving links (4/6) 
Loading headers and footers (5/6) 
Printing pages (6/6)

If the command generates the from the website to PDF file successfully, again, it is obvious that the wkhtmltopdf is working.


When the latest version of wkhtmltopdf is available, change the version number accordingly.


Whoa! Thanks to the comments, which are already more than a month old (I apologize for very sluggish replies, am caught on the realities of my life), I changed the URL of the host to the new one.


6 thoughts on “How To Install wkhtmltopdf In CentOS 7.0

  1. warchyldexross March 13, 2016 / 8:32 pm

    Hosting provider changed for RPM. Please update to

    ##sourceforge notice##
    All downloads are now hosted at

    The migration was announced on 2-July-2015, see the post on mailing list!msg/wkhtmltopdf-general/wZwTUol3mXI/GNVeyrKDdqIJ

    You can subscribe to the mailing list or Twitter feed to receive updates
    on new releases and further changes.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s