Put another way, here's my web page:
/usr/bin/curl --cookie ~/.cookies 'http://somewhere.com'
And I'm looking for a command that goes something like
/usr/bin/curl --cookie ~/.cookies 'http://somewhere.com' | render_raw_html_to_image | lpr
Put another way, here's my web page:
/usr/bin/curl --cookie ~/.cookies 'http://somewhere.com'
And I'm looking for a command that goes something like
/usr/bin/curl --cookie ~/.cookies 'http://somewhere.com' | render_raw_html_to_image | lpr
You can use firefox with the Command Line Print extension.
firefox -print http://www.example.com/index.html
firefox -print http://www.example.com/index.html -printmode pdf -printfile ../foo.pdf
firefox -print http://www.example.com/index.html -printmode PNG
firefox -print http://www.example.com/index.html -printdelay 10
You could try using wkhtmltopdf, which uses the webkit engine to render an HTML page into a PDF file. Then you can print the PDF.
You can use links with the dump switch:
links www.google.com -dump > formatedOutput.txt
And the same with lynx:
lynx www.google.com -dump > formatedOutput.txt
And yet again, the same with w3m:
w3m www.google.com -dump > formatedOutput.txt