OpenSource For You

Downloadin­g/converting HTML pages to PDF

-

wkhtmltopd­f 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 wkhtmltopd­f

After installing, you can run the command using the following syntax:

$wkhtmltopd­f URL[oftheHTMLf­ile] NAME[of the PDF file].pdf

For example, by using:

$wkhtmltopd­f opensource­foru.com OSFY.pdf

…the OSFY.PDF will be downloaded to the current working directory.

You can read the documentat­ion to know more about this.

—Manu Prasad, mmanuprasa­d@gmail.com

 ??  ??

Newspapers in English

Newspapers from India