WordPress Hosting
Free Photos
WordPress Themes

Linux Ubuntu: Printing one or more webpages to pdf file

wkhtmltopdf <url1> <url2> ... <urln> <path/output pdf file name>
I have been using this amazing utility: wkhtmltopdf; to get webpage into pdf file. It can be a really useful utility for easilly reporting in pdf format. It offers many options for customizing output.

install ubuntu/based:
$> sudo apt-get install wkhtmltopdf

<url1>..<urln> url path of webpages
<path/output pdf file name> complete path and name of output target pdf file.

Ex:
$> wkhtmltopdf http://google.com ./googlepage.pdf

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.