plutobook

Convert HTML documents to PDF with advanced CSS pagination support.

brewmacoslinux
Try with needOr install directly
Source

About

Paged HTML Rendering Library

Commands

plutobook

Examples

convert HTML file to PDF$ plutobook input.html output.pdf
render HTML with custom page size and margins$ plutobook --page-size A4 --margin 1in input.html output.pdf
convert HTML from URL to PDF file$ plutobook https://example.com/document.html output.pdf
generate PDF with specific paper dimensions$ plutobook --page-width 8.5in --page-height 11in input.html output.pdf
batch convert multiple HTML files to PDF$ for file in *.html; do plutobook "$file" "${file%.html}.pdf"; done