Convert HTML and CSS to PDF documents programmatically.
PDF generator using HTML and CSS
xhtml2pdf$ xhtml2pdf input.html output.pdf$ xhtml2pdf --format A4 input.html output.pdf$ for file in *.html; do xhtml2pdf "$file" "${file%.html}.pdf"; done$ echo '<html><body><h1>Hello</h1></body></html>' | xhtml2pdf /dev/stdin output.pdf$ xhtml2pdf template.html report.pdf