by Devin Yang

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

在這裡我提供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

需要登入才可留言!

類似的文章


docker,polymer,seo

用Rendertron解決Polymer SEO問題(Polymer Summit 2017)

文章下方的影片介紹如何使用rendertron解決Polymer SEO優化的問題。 在我fork的source中,已調整支援中文環境。 並且還加入了pdf的API接口,也可以拿來轉pdf。

linux,docker,wifi

用docker建立WPA2/EAP企業用Radius驗證伺服器,後端使用mysql資料庫

AP提供了WPA2/EAP功能,但不會用嗎? 本文介紹我如何透過docker的ubuntu:21.04 image,極速建立Radius伺服器, 與Wifi的WPA2/EAP等相關運用。

mysql

如何變更mysql的密碼驗證方式

在mysql 8.0.4之後,預設採用了一個新的驗證外掛caching_sha2_password。 如果我們的系統不支援這外掛怎麼辨?