Skip to main content

Posts

Showing posts with the label HTML to PDF converter

dompdf : HTML to PDF Converter in PHP

Recently, there was an requirement in a project to convert HTML to PDF at run time. While I was going through google, found two very good libraries named 'wkhtmltopdf' and 'dompdf'. dompdf was fulfilling my criteria so i went with that only. Just sharing that with you. dompdf is an HTML to PDF converter library. 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. Download dompdf library from here . Recommended Version : 0.6.0_beta3 Requirements :  1)        PHP 5.0+ (5.3 recommended) 2)       MBString extension - for better Unicode support. 3)       DOM extension  (bundled with PHP 5) –“ The DOM extension allows you to operate on XML...