Wkhtmltopdf – A Smart Tool to Convert Website HTML Page to PDF in Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

41 Responses

  1. cho says:

    how can I install this tool in my Solaris-x86 environment ??

  2. cho says:

    how can I install this tool in my Solaris-x86 environment ??
    I really want to know how to download and install in solaris OS.

  3. Mohan says:

    Hi Ravi,

    Is it possible to have our TOC in second page of our PDF during PDF generation using Wkhtmltopdf?? Please do reply asap..

    Thanks in advance :)

  4. Mike says:

    tar needs -j argument for bz2 files, not -z which is for gzip

  5. Anthony says:

    Good article, but it should be symlinked to /usr/bin to run from anywhere, also no one has yet thought to rename it to something shorter ?

  6. ganesh says:


    I am PHP developer. I have installed wkhtmltopdf in my application. I have one chart which is working fine in browser as html. But when I converts this to pdf via wkhtmltopdf it does not display. I searched on google but I didn’t find any solution.


  7. Hi

    I’ve used wkhtmltopdf on linux, mac and windows. Works great.
    Has anyone tried to install it on z/OS (zLinux probably) to be used from a batch environment called from JCL ?

  8. Ram says:

    Great work… Thanks for the detailed info.

  9. Kamran says:

    Can you tell me , how I can add Tahoma font to generated pdf? or another font with utf-8 support (for characters üöğıəçşÜÖĞİƏÇŞ)

  10. Kamran says:

    Hi, I installed. No errors but when I run wkhtmltopdf http://google.com /opt/test.pdf
    I get error “-bash: wkhtmltopdf: command not found”

Leave a Reply to Ravi Saive Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.