Go2Linux posted a tutorial about converting HTML to PDF from the command line
When you may need to convert a complete web page in html to a pdf file, Linux can help you.Convert html to pdf - Linux
We will need two tools:
wget - To download the complete page, including css, and others
wkhtmltopdf - To make the real conversion from html to pdf
You should be able to install both of them using your package manager.