Skip to content

Releases

FZPureHTML 1.0.0

Choose a tag to compare

@fabiozappa fabiozappa released this 17 Nov 19:36

First public release of FZPureHTML: HTML to PDF in pure PHP.

Write your document in HTML with the bundled stylesheet, call one function, get the PDF. No external libraries, no programs to install, no Composer.

What's included

  • FZPureHTML.php — the converter (one file)
  • fzpurehtml.css — the stylesheet: the browser uses it for the preview, the converter reads it to produce the PDF
  • esempio/ — a complete example in English and Italian, with the generated PDFs

Features

  • Browser preview identical to the PDF, line breaks included
  • Headers, footers and page numbers
  • Real TrueType fonts, embedded in the PDF
  • Tables with headers repeated on every page, lists, PNG and JPEG images, page breaks
  • A list of warnings after each conversion: whatever was ignored or replaced

Requirements

PHP 8.1+ with dom, mbstring, zlib. TrueType fonts are not bundled: the README explains where to download Liberation and DejaVu (free licences) and where to put them.

Try it

Live demo — edit an HTML document and convert it, no installation needed.


🇮🇹 Prima versione pubblica. Da HTML a PDF in puro PHP, senza librerie esterne. Requisiti, font e istruzioni in README.it.md. Prova la demo.