Registry / serialization / wkhtmltopdf

wkhtmltopdf

JSON →
library0.2pypypiunverified

Simple Python wrapper for wkhtmltopdf that converts HTML to PDF using the wkhtmltopdf command-line tool. Version 0.2 is the latest release. The library has been in maintenance mode and is no longer actively developed.

pip install wkhtmltopdf
INSTALL
IMPORT
SIG · WKHTMLTOPDF
W
wkhtmltopdf
serializationpythonv0.2
Install
2.5s avg
Import
—
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wkhtmltopdf
✓ import wkhtmltopdf
✗ import wkhtmltopdf

Basic example: convert an HTML file to PDF and write the output PDF.

import wkhtmltopdf # Convert HTML to PDF with open('input.html', 'w') as f: f.write('<h1>Hello World</h1>') pdf = wkhtmltopdf.convert('input.html') with open('output.pdf', 'wb') as f: f.write(pdf)
wkhtmltopdf --version
Debug
Known issues
deprecatedwkhtmltopdf is no longer actively maintained. Consider using alternatives like pdfkit, weasyprint, or selenium.
fix
Switch to a maintained library such as pdfkit (pip install pdfkit) or weasyprint.
affects: all
gotchaThe library requires the wkhtmltopdf binary to be installed on your system and accessible in PATH. pip install does not install the binary.
fix
Install wkhtmltopdf from https://wkhtmltopdf.org/downloads.html and ensure it is in your PATH.
affects: all
Upgrade
Version history
0.2latest on PyPI · released Jul 21, 2011
Audit
Dependencies
wkhtmltopdf (system tool)requiredThe library requires the wkhtmltopdf binary to be installed on the system.
Agent activity
18 hits · last 30 days
node
14
Bingbot
1
OpenAI (training)
1
Resources
wkhtmltopdf — pip install wkhtmltopdf · libregistry