Well.Done (c) Radek Hulán [EN]



html2pdf - convert your XHTML to PDF easily

15.07.2007

I've created html2pdf PHP class, which allows one-click conversion of XHTML to PDF. It is an extension of FPDF class, found on http://www.fpdf.org.

Basic HTML2PDF features:

  • support for bold text, italics, underlined text.
  • support for headlines <h1>, <h2>, <h3> and <h4>.
  • support for linked and embedded images.
  • basic support for tables.
  • full support for lists <li>.
  • full support for <blockquote>.
  • support for pseudo-tags <red>, <blue>.
  • <pre> will be displayed using Courier font, other text with Times New Roman font.
  • support for <br>, <br /> and <p>.
  • support for <hr> and <hr />.
  • exported PDF filename is created by ascii characters of article title.
  • temporary files are deleted after 60 minutes.
  • document header is created with article title, article URI, author, and publishing date.
  • document footer is created with current and total page numbers.
  • built-in support for iconv (character conversions).
  • supplied fonts Times a Courier, in CP1250 encoding (can be used for text in iso-8859-1, iso-8859-2, cp1250, and cp1252, with iconv).
category: PHP - permalink - comments: 4 [08.12.07 09:30]