dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) CSS2.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 (www.pdflib.com) or by a bundled version the R&OS CPDF class written by Wayne Munro (www.ros.co.nz/pdf). (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.
dompdf was entered in the Zend PHP 5 Contest and placed 20th overall.
dompdf works only with PHP 5. There are no plans for a PHP 4 port.
Features
- handles most CSS2.1 properties & selectors, including @import, @media & @page rules
- supports most presentational HTML 4.0 attributes
- supports external stylesheets, either on the local machine or through homepage (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.
- tables can not be reliably nested (though some have reported success)
- ordered lists are currently unsupported.
- absolute & relative positioning and floats do not work,yet.
- not particularly tolerant to poorly-formed HTML or CSS input (using Tidy first may help)
- large files can take a while to render
- Large tables require large amounts of memory. Setting PHP's memory limit to at least 32MB or higher is recommended.
Top 4 Download periodically updates information of dompdf 0.5.1 script from the developer, but some information may be slightly out-of-date.
Our script download links are directly from our mirrors or publisher's website. dompdf 0.5.1 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!