# wkhtmltopdf/wkhtmltopdf

Convert HTML to PDF using Webkit (QtWebKit)

Repository: https://github.com/wkhtmltopdf/wkhtmltopdf
Canonical: https://ross.abutalabs.com/products/wkhtmltopdf
Homepage: https://wkhtmltopdf.org
Language: C++
License: LGPL-3.0
License Family: copyleft
Archived: true
Last push: 2022-11-22T10:32:12+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 6235, "days_push": 1380, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14572, forks 1956 (observed 2026-08-28T04:11:07.271981+00:00)

## What it is
wkhtmltopdf and wkhtmltoimage are open-source (LGPLv3) command line tools that render HTML into PDF and various image formats using the Qt WebKit engine, running entirely headless without a display. A C library (libwkhtmltox) with stable C bindings is also available for programmatic HTML-to-PDF/image conversion.

## Use cases
- convert html page to pdf from command line
- generate invoices as pdf from html templates
- render a webpage screenshot as png or jpeg
- save a url as pdf headlessly on a server
- embed html-to-pdf conversion in an application via c library
- create printable reports from html

## When to choose
- you need simple, headless HTML-to-PDF or HTML-to-image conversion from the command line
- you want a stable C API to integrate HTML rendering into your own application
- you need to generate PDFs from HTML templates without a browser or display service

## When to avoid
- you need modern CSS/JavaScript support, since Qt WebKit is outdated and no longer matches current browsers
- you need an actively developed tool - the project is in maintenance with its last release in 2022
- you need pixel-perfect rendering of modern web apps - consider headless Chrome/Puppeteer instead

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: pdf, image-processing, cli
- domain: pdf, developer-tools, web-development, files
- platform: windows, cli, cross-platform
- tags: html-to-pdf, webkit, headless-rendering, html-to-image, qt-webkit, libwkhtmltox, linux, macos

## Member repositories
- wkhtmltopdf/wkhtmltopdf (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:07.271981+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:12:28.633011+00:00, confidence not recorded.
  - readme: https://github.com/wkhtmltopdf/wkhtmltopdf (fetched 2026-08-28T04:11:07.271981+00:00, sha e8a262e9ec1e)
  - homepage: https://wkhtmltopdf.org (fetched 2026-08-29T08:05:44.713255+00:00, sha 688f6f8474f0)
  - site_page: https://wkhtmltopdf.org/docs.html (fetched 2026-08-29T08:05:44.722451+00:00, sha 30c1fdd08dd6)
  - site_page: https://wkhtmltopdf.org/libwkhtmltox (fetched 2026-08-29T08:05:44.724567+00:00, sha 65db9b84562f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
