wkhtmltopdf
Convert HTML documents or web pages into PDF files. tldr-pages
On several platforms
Several platforms
Convert an HTML document into PDF
wkhtmltopdf input.html output.pdfIdentifySpecify the PDF page size (please see PaperSize of QPrinter for supported sizes)
wkhtmltopdf --page-size A4 input.html output.pdfIdentifySet the PDF page margins
wkhtmltopdf --margin-top 10mm input.html output.pdfIdentifySet the PDF page orientation
wkhtmltopdf --orientation Landscape input.html output.pdfIdentifyGenerate a greyscale version of the PDF document
wkhtmltopdf --grayscale input.html output.pdfIdentify