Repository navigation
Releases
Releases · fabiozappa/fz-pure-html
FZPureHTML 1.0.0
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 PDFesempio/— 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.