[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#567928: RFP: dompdf -- CSS2.1 compliant HTML to PDF converter written in PHP



Package: wnpp
Severity: wishlist

* Package name    : dompdf
  Version         : 0.5.1
  Upstream Author : Benj Carson <benjcarson@digitaljunkies.ca>
* URL             : http://code.google.com/p/dompdf/
* License         : LGPL
  Programming Lang: PHP
  Description     : CSS2.1 compliant HTML to PDF converter written in PHP

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 (http://www.pdflib.com) or by a bundled version the R&OS CPDF class written by Wayne Munro (http://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. 


The Drupal print module can use either this or tcpdf (ITP: #495985) to generate PDFs, which is why I am filing this RFP.

Packaging notes:
* as mentioned in the description, rendering requires either
   PDFLib (http://www.pdflib.com)
    or
   R&OS CPDF class (http://www.ros.co.nz/pdf).
* PDFLib is non-free. They have a "Free Software" version on their
   website, but it restricts commercial use (I sent them email pointing
   out this problem)
   http://www.pdflib.com/download/free-software/pdflib-lite-7/
* R&OS is public domain software. I filed an RFP #567927
* Also requires http://ttf2pt1.sourceforge.net/, this is already in
   Debian as "ttf2pt1".
* The webpage indicates you might want to have the Microsoft core fonts
   installed http://corefonts.sourceforge.net/. This is just an installer
   that installs the MS fonts, it's available in Debian as
   "ttf-mscorefonts-installer" but it's in contrib due to the non-freeness
   of the fonts, so we wouldn't want dompdf to depend on it or it would
   need to go in contrib as well. But maybe it could still use those
   fonts if they were available.

Thanks,

-- 
Matt Taggart
taggart@debian.org



Reply to: