An HTML to PDF converter written in PHP
dompdf is an HTML layout and rendering engine written in PHP that can generate PDFs.
Features
- handles most CSS 2.1 and a few CSS3 properties, including @import, @media & @page rules
- supports most presentational HTML 4.0 attributes
- supports external stylesheets, either local or through http/ftp (via fopen-wrappers)
- supports complex tables, including row & column spans, separate & collapsed border models, individual cell styling
- image support (gif, png (8, 24 and 32 bit with alpha channel), bmp & jpeg)
- no dependencies on external PDF libraries, thanks to the R&OS PDF class
- inline PHP support
Requirements
- PHP 5.0.0+ (5.3 recommended)
- MBString extension
- DOM extension (bundled with PHP 5)
- Some fonts.
The code is licensed under GNU Lesser GPL.