plutoprint

Convert HTML to PDF and image files from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

Generate PDFs and Images from HTML

Commands

plutoprint

Examples

convert HTML file to PDF$ plutoprint input.html output.pdf
save webpage as PNG image$ plutoprint input.html output.png
generate PDF from HTML with custom page size$ plutoprint --page-size A4 input.html output.pdf
convert HTML URL to PDF file$ plutoprint https://example.com output.pdf
export HTML to multiple image formats$ plutoprint input.html output.jpg