PHP Classes

File: examples/pdfMobileScreen.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq   PHP Chrome PDF   examples/pdfMobileScreen.php   Download  
File: examples/pdfMobileScreen.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: 6 years ago
Size: 445 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=768, $height=768);
"Pdf successfully generated :".$chrome->getPdf().PHP_EOL;