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 |
No Comment
Post your comment