Wkhtmltopdf is a command line utility for converting webpage / html to PDF.
- Convert web pages into PDF documents using webkit
- Adding headers and footers (static version only)
- TOC generation (static version only)
- Batch mode conversions
- (Linux) No longer requires an XServer to be running (however the X11 client libs must be installed)
$ sudo apt-get install wkhtmltopdf
See More Usage Details here