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 wkhtmltopdfVerified import paths — ran on the pinned version, not inferred.
Basic example: convert an HTML file to PDF and write the output PDF.
Switch to a maintained library such as pdfkit (pip install pdfkit) or weasyprint.
Install wkhtmltopdf from https://wkhtmltopdf.org/downloads.html and ensure it is in your PATH.