Downloading/converting HTML pages to PDF
wkhtmltopdf is a software package that converts HTML pages to PDF. If this is not installed on your system, use the following command to do so:
$sudo apt-get install wkhtmltopdf
After installing, you can run the command using the following syntax:
$wkhtmltopdf URL[oftheHTMLfile] NAME[of the PDF file].pdf
For example, by using:
$wkhtmltopdf opensourceforu.com OSFY.pdf
…the OSFY.PDF will be downloaded to the current working directory.
You can read the documentation to know more about this.
—Manu Prasad, mmanuprasad@gmail.com