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

需要登入才可留言!

类似文章


Ubuntu

Ubuntu上的ps命令的包

日志如果系统未安装ps时,如何手动安装

docker

用树莓派安装Docker及docker-compose

本文简单介绍我们如何在Raspberry Pi上安装docker及docker-compose。

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