Linux: Saving one or more webpages to pdf file

PHOTO EMBED

Sun Aug 28 2022 01:54:33 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash

wkhtmltopdf <url1> <url2> ... <urln> <output-pdf-path-filename>
content_copyCOPY

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