PHP Classes

File: examples/screenshot.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq  >  PHP Chrome PDF  >  examples/screenshot.php  >  Download  
File: examples/screenshot.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Chrome PDF
Generate PDF or images of HTML pages with Chrome
Author: By
Last change: Apply fixes from StyleCI
Date: 4 years ago
Size: 428 bytes


Class file image Download
 * Created by PhpStorm.
 * User: dawood ikhlaq
 * Date: 7/8/2017
 * Time: 3:08 PM
include '../vendor/autoload.php';


$chrome=new Chrome('', '/usr/bin/google-chrome');
//not necessary to set window size
$chrome->setWindowSize($width=1366, $height=1024);
"Image successfully generated :".$chrome->getScreenShot().PHP_EOL;

For more information send a message to info at phpclasses dot org.