• 1-888-289-2246
  • 24x7x365 Presence

Converting HTML pages into the PDF form on a Linux machine


If you have a Linux machine and want to save an HTML page from the Internet into the PDF format, then you can do that from the Linux machine and save that page for future aspects with the help of the tool “wkhtmltopdf”.

It is very easy to install this tool on the Linux machine and it’s in the readymade format of the binary package – you just need to download and use it.

Follow the steps below to use the ‘wkhtmltopdf’ tool for converting HTML into the PDF page:-

Step 1: Download ‘wkhtmltopdf’ into your Linux machine and make it usable like below :-

wget https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2
tar -xjf wkhtmltopdf-0.10.0_rc2-static-amd64.tar.bz2
mv wkhtmltopdf-amd64 wkhtmltopdf
mv wkhtmltopdf /usr/local/bin/

After this, you can check wkhtmltopdf’s version number using the command below:-

wkhtmltopdf -V

Step 2: Download the HTML page into any temporary location on the Linux machine:-

wget -p http://xyz.com/index.html

Step 3: Convert the HTML page into the PDF form

wkhtmltopdf index.html index.pdf

and then check the PDF page anytime.

]]>


Leave a Reply

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