wkhtmltopdf will download a webpage and make it into a pdf file in one go..\\

To install wkhtmltopdf in Ubuntu, use:
<code>
sudo apt-get install wkhtmltopdf
</code>

Then, to convert a webpage to PDF, type as in example:
<code>
wkhtmltopdf http://www.bbc.com ~/Desktop/bbc.pdf
</code>

Replacing ''http://www.bbc.com'' and ''bbc.pdf'' with the website you want to convert to PDF / the name you desire for the converted PDF file.

With wkhtmltopdf, you can disable the javascript on the page if you want, change the quality, orientation (portrait or landscape), and more. To see everything ''wkhtmltopdf'' can do, type:
<code>
wkhtmltopdf --help
</code>
From [[http://operating-systems.wonderhowto.com/how-to/convert-webpage-html-pdf-ubuntu-linux-287448/]]