Open Source HTML to PDF Renderer with Full CSS Support

Do you see :

  • http://www.xhtml2pdf.com
  • http://code.google.com/p/wkhtmltopdf/

They look as PrinceXML


I've always used it on the command line and not as a library, but HTMLDOC gives me excellent results, and it handles at least some CSS (I couldn't easily see how much).

Here's a sample command line

htmldoc --webpage -t pdf --size letter --fontsize 10pt index.html > index.pdf

This command line tool is the business! https://wkhtmltopdf.org/

It uses webkit rendering engine(used in safari and KDE), I tested it on some complex sites and it was by far better than any other tool.