spipu / html2pdf
Html2Pdf is a HTML to PDF converter written in PHP5 (it uses TCPDF). OFFICIAL PACKAGE
Installs: 8 330 240
Dependents: 53
Suggesters: 1
Security: 2
Stars: 1 679
Watchers: 97
Forks: 749
Open Issues: 229
Requires
- php: ^5.6 || ^7.0 || ^8.0
- ext-gd: *
- ext-mbstring: *
- tecnickcom/tcpdf: ^6.3
Requires (Dev)
- phpunit/phpunit: ^5.0 || ^9.0
Suggests
- ext-gd: Allows to embed images into the PDF
- fagundes/zff-html2pdf: if you need to integrate Html2Pdf with Zend Framework 2 (zf2)
README
Html2Pdf is a HTML to PDF converter written in PHP, and compatible with PHP 5.6 to 8.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.
Requirements
Html2Pdf works with PHP >5.6 and Composer.
You will also need at least the following php extensions:
- gd
- mbstring
Documentation
You will find the install documentation here.
You will find all the documentation here.
You will find lots of examples here.
Donate
You can support this project by making a donation.
Change log
See the ./CHANGELOG.md file.
Help & Support
For questions and bug reports, please use the GitHub issues page.
License
This program is distributed under the OSL License. For more information see the ./LICENSE.md file.
Copyright 2008-2023 by Laurent Minguet