Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.
/ Capture Public archive

Take a screenshot/pdf/html capture of a web page using headless browsers.

Notifications You must be signed in to change notification settings

Jarzon/Capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jarzon/Capture

Take a screenshot/pdf/html, of a page using Chrome.

    $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');

Configure Chrome location

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

About

Take a screenshot/pdf/html capture of a web page using headless browsers.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages