Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP WkHtmlToPdf - interface to wkhtmltopdf command

Packagist License

PHP WkHtmlToPdf provides OOP interface to ease PDF creation from HTML contents using wkhtmltopdf command tool.
The wkhtmltopdf command tool must be installed previously on your server.

Installation

Install the latest package version through Composer:

composer require mediatech/php-wkhtmltopdf:dev-master

or

"require": {
    "mediatech/php-wkhtmltopdf": "dev-master"
},

Using example

Load HTML from string and save contents to PDF specified file.

use MediaTech\Pdf;

$pdf = new Pdf();
$pdf->loadHtml('<div>test</div>')
    ->save(/path/to/file.pdf);

About

HTML to PDF convertion

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages