mediatech / php-wkhtmltopdf
A PHP wrapper interface to wkhtmltopdf command tool
Installs: 20 169
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ~4.7
This package is not auto-updated.
Last update: 2024-10-30 19:55:10 UTC
README
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);