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

需要登入才可留言!

類似的文章


dlaravel

如何透過getssl自動檢測及更新let's encrypt發出的憑證

let's encrypt提供免費的憑證真的很棒,不過,三個月要更新一次憑證是不是有點麻煩, 本文介紹,如何透過getssl,產生多域名的SAN憑證設定,放入排程自動進行憑證更新。 非常簡單哦,六個步驟即可搞定。

nginx,dlaravel

如何設定nginx上的HTTPS,取得Qualys的SSL A+評分

本文介紹如何調整nginx的ssl設定,讓網站取得SSL報告,取得A+的評比。 這裡我使用的為 letsencrypt 免費憑證。 只要您使用D-Laravel預設的Docker官方nginx新版image,應該都可以達到跟我一樣的效果。 可透過下方檢測您的主機SSL設定。 https://www.ssllabs.com/ssltest/index.html

linux,system

檢測系統中的selinux是否啟用

檢測系統中的selinux是否啟用