开发者

How to take webpage screenshots with wkhtmltopdf?

开发者 https://www.devze.com 2023-02-20 09:33 出处:网络
I can create PDF file with wkhtmltopdf in linux Ubuntu: \"wkhtmltopdf www.stackoverflow.com file.pdf\"

I can create PDF file with wkhtmltopdf in linux Ubuntu: "wkhtmltopdf www.stackoverflow.com file.pdf" How to take webpa开发者_如何学JAVAge screenshots?


You can use wkhtmltoimage as suggested by Mathew. You can go to the first URL and download the file suitable for your architecture (or its source code). Usage is simple:

./wkhtmltoimage-i386 http://www.google.com google.png


wkhtmltoimage - this also uses the webkit render engine for excellent results and is available as standalone binary with no install problems anticipated, just trial and error to get the results you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号