jarzon/capture

此包已被废弃,不再维护。未建议替代包。
此包最新版本(v0.1.4)没有可用的许可证信息。

维护者

详细信息

github.com/Jarzon/capture

源代码

问题

安装: 29

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

类型:项目

v0.1.4 2018-05-06 21:01 UTC

This package is auto-updated.

Last update: 2020-02-12 02:16:33 UTC


README

使用Chrome截取页面截图/pdf/html。

    $capture = new Capture();
    
    $stout = $capture->screenshot('http://google.com', "destination/screenshot.png");
    $stout = $capture->pdf('http://google.com', "destination/screenshot.pdf");
    $html = $capture->html('http://google.com');

配置Chrome位置

    $capture = new Capture([
        'chrome_path' => (Capture::isWindows())? '"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"': '/usr/bin/google-chrome'
    ]);