Examples (5)
Convert a HTML document into PDF
wkhtmltopdf input.html output.pdfSpecify the PDF page size (please see `PaperSize` of `QPrinter` for supported sizes)
wkhtmltopdf --page-size A4 input.html output.pdfSet the PDF page margins
wkhtmltopdf --margin-top|bottom|left|right 10mm input.html output.pdfSet the PDF page orientation
wkhtmltopdf --orientation Landscape|Portrait input.html output.pdfGenerate a greyscale version of the PDF document
wkhtmltopdf --grayscale input.html output.pdfmade by @shridhargupta | data from tldr-pages