PHP Classes

File: examples/pdfInDefaultDirectory.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq   PHP Chrome PDF   examples/pdfInDefaultDirectory.php   Download  
File: examples/pdfInDefaultDirectory.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: 7 years ago
Size: 281 bytes
 

Contents

Class file image Download
<?php
include '../vendor/autoload.php';

use
dawood\phpChrome\Chrome;

//in this example we will put output in default output directory of library

$chrome=new Chrome('https://youtube.com', '/usr/bin/google-chrome');
print
"Pdf successfully generated :".$chrome->getPdf().PHP_EOL;