xhtml2pdf

Converts HTML and CSS to PDF documents programmatically

pipmacoslinuxwindows
Try with needOr install directly
Source

About

PDF generator using HTML and CSS

Commands

xhtml2pdf

Examples

Convert a simple HTML file to PDF$ xhtml2pdf input.html output.pdf
Convert HTML with CSS styling to PDF$ xhtml2pdf -s styles.css input.html output.pdf
Generate PDF from HTML string with custom options$ xhtml2pdf --encoding=utf-8 template.html result.pdf