Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

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.

Sachin Sunday 29 September 2013 - 07:30 am | | Default
Used tags: , , , ,

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.