CmdID

CmdID / Commands

wkhtmltopdf

Convert HTML documents or web pages into PDF files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Convert an HTML document into PDF

wkhtmltopdf input.html output.pdfIdentify

Specify the PDF page size (please see PaperSize of QPrinter for supported sizes)

wkhtmltopdf --page-size A4 input.html output.pdfIdentify

Set the PDF page margins

wkhtmltopdf --margin-top 10mm input.html output.pdfIdentify

Set the PDF page orientation

wkhtmltopdf --orientation Landscape input.html output.pdfIdentify

Generate a greyscale version of the PDF document

wkhtmltopdf --grayscale input.html output.pdfIdentify