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

需要登入才可留言!

类似文章


Laravel linux

我的移动电脑,安装Laravel 8在Sony xperia 5 II上

这是我的第一只Android手机,试装Laravel完全没问题耶,基本上我装了vim及mariadb。 运行sshd后,可以透过8022登录哦,完全是一台移动电脑了:p。 我使用的软体是Termux...

dlaravel

超好用HTML转PDF包mpdf介绍

开发时,会需进行HTML转PDF的输出吗?这个影片介绍,如何透过php的mpdf的函式库,输出PDF画面上。

php openssl curl

修正CA设置问题

有时可能PHP版本更新或环境变动造成找不到ca文件。 修正很简单