A PHP wrapper interface to wkhtmltopdf command tool

v1.1.0 2016-07-05 09:07 UTC

This package is not auto-updated.

Last update: 2024-04-17 17:05:23 UTC


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.


Install the latest package version through Composer:

composer require mediatech/php-wkhtmltopdf:dev-master


"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();