by Devin Yang

建立於: 7年前 ( 更新: 7年前 )

在這裡我提供Mac上的執行方式
抓圖: 會產出output.png
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless \
--screenshot https://www.google.com
列印PDF: 會產出output.pdf
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless \
--print-to-pdf https://www.google.com
以下列出可用參數:
說明 有用的參數
Screenshots --screenshot
Create PDFs --print-to-pdf
Dump the DOM --dump-dom
Window size --window-size=412,732

Tags:

Devin Yang

文章內容無法一一說明,如果您有什麼不了解處,歡迎提問哦:)

No Comment

Post your comment

需要登入才可留言!

類似的文章


linux

ubuntu找不到add-apt-repository指令

ubuntu找不到add-apt-repository指令

sort

如何在command line列出第一層的檔案大小?

如使建立一個duf別名,用指令,顯示第一層的資料夾及檔案大小?

laravel

@dump介紹,Laravel 5.6.8新功能

在Laravel 5.6的directive多了一個新功能叫@dump了 讓我們來看看他有多cool。