Dompdf 0.6.0 Beta1

Dompdf

Dompdf is a free HTML to PDF Converter, which solves this problem by converting Web pages to PDF or image files. It's a simple PHP PDF program, but one that has the potential to be tremendously useful.At its heart, dompdf is (mostly) CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer: it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes.

PDF rendering is currently provided either by PDFLib or by a bundled version the R&OS CPDF class written by Wayne Munro. (Some performance related changes have been made to the R&OS class, however). In order to use PDFLib with dompdf, the PDFLib PECL extension is required. Using PDFLib improves performance and reduces the memory requirements of dompdf somewhat, while the R&OS CPDF class, though slightly slower, eliminates any dependencies on external PDF libraries.

Features of Dompdf:
- handles most CSS2.1 properties & selectors, including @import, @media & @page rules (see here)
- supports most presentational HTML 4.0 attributes
- supports external stylesheets, either on the local machine or through http/ftp (via fopen-wrappers)
- supports complex tables, including row & column spans, separate & collapsed border models, individual cell styling, multi-page tables (no nested tables yet however)
- image support (png, gif & jpeg)
- no dependencies on external PDF libraries, thanks to the R&OS PDF class
- link and anchor support
- inline PHP support. See the section on inline PHP for details.

Requirements:
- PHP 5.0.0+
- MBString extension
- DOM extension (bundled with PHP 5)
- Some fonts. PDFs internally support Helvetica, Times-Roman, Courier & Zapf-Dingbats, but if you wish to use other fonts you will need to install some fonts. dompdf supports the same fonts as the underlying R&OS PDF class: Type 1 (.pfb with the corresponding .afm) and TrueType (.ttf). At the minimum, you should probably have the Microsoft core fonts.

License type: LGPL
Date added: 3 years, 12 months 3 days ago | Last updated: 3 years, 10 months 19 days ago

More popular PDF

Listing Files

dompdf-0.4
doc
dompdf
List All Files