{"id":24837,"library":"wkhtmltopdf","title":"wkhtmltopdf","description":"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.","status":"maintenance","version":"0.2","language":"python","source_language":"en","source_url":"https://github.com/qoda/python-wkhtmltopdf","tags":["wkhtmltopdf","pdf","html-to-pdf","wrapper","maintenance"],"install":[{"cmd":"pip install wkhtmltopdf","lang":"bash","label":"pip install wkhtmltopdf"}],"dependencies":[{"reason":"The library requires the wkhtmltopdf binary to be installed on the system.","package":"wkhtmltopdf (system tool)","optional":false}],"imports":[{"wrong":"import wkhtmltopdf","symbol":"wkhtmltopdf","correct":"import wkhtmltopdf"}],"quickstart":{"code":"import wkhtmltopdf\n# Convert HTML to PDF\nwith open('input.html', 'w') as f:\n    f.write('<h1>Hello World</h1>')\npdf = wkhtmltopdf.convert('input.html')\nwith open('output.pdf', 'wb') as f:\n    f.write(pdf)","lang":"python","description":"Basic example: convert an HTML file to PDF and write the output PDF."},"warnings":[{"fix":"Switch to a maintained library such as pdfkit (pip install pdfkit) or weasyprint.","message":"wkhtmltopdf is no longer actively maintained. Consider using alternatives like pdfkit, weasyprint, or selenium.","severity":"deprecated","affected_versions":"all"},{"fix":"Install wkhtmltopdf from https://wkhtmltopdf.org/downloads.html and ensure it is in your PATH.","message":"The library requires the wkhtmltopdf binary to be installed on your system and accessible in PATH. pip install does not install the binary.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.2':20 'activ':36 'command':16 'command-lin':15 'convert':8 'develop':37 'html':9,41 'html-to-pdf':40 'latest':23 'librari':26 'line':17 'longer':35 'mainten':30,45 'mode':31 'pdf':11,39,43 'python':3 'releas':24 'simpl':2 'tool':18 'use':12 'version':19 'wkhtmltopdf':1,6,14,38 'wrapper':4,44","created_at":"2026-05-01T08:15:11.026133+00:00","updated_at":"2026-05-01T08:15:11.026133+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmppaay684a/venv/lib/python3.12/site-packages/wkhtmltopdf/__init__.py\", line 1, in <module>\n    from main import WKhtmlToPdf, wkhtmltopdf\nModuleNotFoundError: No module named 'main'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.2","cli_name":"wkhtmltopdf","cli_version":"sh: 1: wkhtmltopdf: not found","type":"library","homepage":null,"github":"http://github.com/qoda/python-wkhtmltopdf","docs":null,"changelog":null,"pypi":"https://pypi.org/project/wkhtmltopdf/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}