by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

Here I provide the execution method on Mac
Snapshot: output.png will be produced
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless\
--screenshot https://www.google.com
Print PDF: output.pdf will be output
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless\
--print-to-pdf https://www.google.com
Available parameters are listed below:
Description Useful parameters
Screenshots --screenshot
Create PDFs --print-to-pdf
Dump the DOM --dump-dom
Window size --window-size=412,732

Tags:

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


pppoe

How to make pppoe dialup on ubuntu

How to make pppoe dialup on ubuntu

router,nat

My Juyi Firewall NAT Notes

In this article, I found the relevant instructions about Juyi's NAT and DMZ. I used Google to translate it into Chinese and then adjusted it a little. Juyi's NAT includes "port redirection", "open port" and "DMZ host". (There are Port Redirection, Open Ports, and DMZ Host.)

linux

The error code returned by rsync

All rsync error codes are listed here, so in scheduling, we can understand the reason for the failure.