Home arrow Journal arrow Convert a HTML webpage to PDF
Convert a HTML webpage to PDF PDF
Sunday, 11 March 2012
You can easily convert a HTML page to PDF format using wkhtmltopdf app from FreeBSD's Ports:

  cd /usr/ports/converters/wkhtmltopdf
  make install clean; rehash

The advantage of using wkhtmltopdf tool is that it uses WebKit which makes PDF quality better because it renders web pages better than other tools of its kind.

To convert an URL to PDF we will run:

  wkhtmltopdf http://www.freebsdonline.com freebsdonline.pdf

Last Updated ( Sunday, 11 March 2012 )
< Prev   Next >

Other BSD Systems





Best BSD firewall?