Command-line tool
wkhtmltox
winget/wkhtmltopdf.wkhtmltox
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Convert HTML documents or web pages into PDF files. pdf html
At a glance
- Type
- Command-line tool
- Install on
- Windows
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id wkhtmltopdf.wkhtmltox -e
Convert an HTML document into PDF
wkhtmltopdf input.html output.pdf
Specify the PDF page size (please see `PaperSize` of `QPrinter` for supported sizes)
wkhtmltopdf --page-size A4 input.html output.pdf
Set the PDF page margins
wkhtmltopdf --margin-top 10mm input.html output.pdf
Browse
Related command-line tools
- wkhtmltopdf
Render HTML into PDF - aha
ANSI HTML adapter - xmlto
Convert XML to another format (based on XSL or other tools) - pdftohtml
Utility which converts PDF files into HTML and XML formats - pandoc
Swiss-army knife of markup format conversion markdown docs document 转换 converter doc 转换器 pandoc 格式转换 document-converter - asciidoctor
Text processor and publishing toolchain for AsciiDoc - enscript
Convert text to Postscript, HTML, or RTF, with syntax highlighting - highlight
Convert source code to formatted text with syntax highlighting
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents