phppdflib Library to generate PDF files with PHP This tool requires wkhtmltopdf. How to install wkhtmltopdf on linux you can explore here.