换句话说,这是我的网页:
/usr/bin/curl --cookie ~/.cookies 'http://somewhere.com'
而我正在寻找一个类似的命令
/usr/bin/curl --cookie ~/.cookies 'http://somewhere.com' | render_raw_html_to_image | lpr
您可以使用命令行打印扩展名使用Firefox。
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
资源
您可以尝试使用wkhtmltopdf ,它使用webkit引擎将HTML页面呈现为PDF文件。 然后你可以打印PDF。
您可以使用转储开关的链接:
links www.google.com -dump > formatedOutput.txt
和l same一样:
lynx www.google.com -dump > formatedOutput.txt
而且,和w3m一样:
w3m www.google.com -dump > formatedOutput.txt