OFFICIAL PROJECT | HTML to PDF converter written in PHP
Branch: master
Clone or download
Latest commit e89f369 Nov 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Update Nov 4, 2018
examples add `balloon` example - issue #385 Oct 26, 2018
src prepare the next 5.2.2 version Oct 26, 2018
test getter example file May 19, 2017
.gitignore add code coverage Jan 19, 2018
.travis.yml add test on locale + php 7.2 compatibility Jan 19, 2018 prepare the next 5.2.2 version Oct 26, 2018 update doc May 17, 2017 Update Sep 11, 2018
composer.json better composer.json file Jul 31, 2018
phpunit.xml better test Jan 19, 2018


Html2Pdf is a HTML to PDF converter written in PHP, and compatible with PHP 5.4 to 7.2.

It allows the conversion of valid HTML in PDF format, to generate documents like invoices, documentation, ...

You have to write a code of HTML for Html2Pdf, and not try to convert directly an already existing html page.

Specific tags have been implemented, to adapt the html standard to a PDF usage.

You must use Composer to install this library.

It uses TCPDF for the PDF part.


Html2Pdf works with PHP >5.4 and Composer.

You will also need at least the following php extensions:

  • gd
  • mbstring


You will find the install documentation here.

You will find all the documentation here.

You will find lots of examples here.


You can support this project by making a donation.

Change log

See the ./ file.

Help & Support

For questions and bug reports, please use the GitHub issues page.


This program is distributed under the OSL License. For more information see the ./ file.

Copyright 2008-2018 by Laurent Minguet