django-wkhtmltopdf
Converts HTML to PDF using wkhtmltopdf.
Decision gist · record as of 2026-08-14
No. The package is abandoned with no maintenance since early 2023 and classifiers indicate support only for Python 2.6–3.4, making it incompatible with modern Python and Django versions. If you need HTML-to-PDF in Django, consider actively maintained alternatives instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires the wkhtmltopdf static binary to be installed separately on the system and libfontconfig as a system dependency (e.g., via package manager).
- Installation is straightforward (low friction), but the package is abandoned as of 2023 with no recent maintenance.
- The last commit was 2023-01-23 and no updates have been released since 2022-02-24, so security patches and compatibility fixes are unlikely.
License · maintenance · safety
BSD-2-Clause (permissive) — Licensed under BSD-2-Clause (permissive), allowing commercial and private use with minimal restrictions, though you should retain the license notice in distributions.
last release 2022-02-24 (1632 days) · last repo commit 2023-01-23 · 325 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 174,344 downloads/mo, #10,283 on PyPI
Alternatives
Verify before relying
pip install django-wkhtmltopdf
# In settings.py:
INSTALLED_APPS = ['wkhtmltopdf', ...]
# In views.py:
from wkhtmltopdf.views import PDFTemplateView
class MyPDFView(PDFTemplateView):
template_name = 'my_template.html'- Whether the package works reliably with modern Django versions (3.2+, 4.x, 5.x) given the abandoned status and old Python version classifiers.
- Whether wkhtmltopdf binary compatibility issues have emerged on recent operating systems or architectures.
What it is and what it does
django-wkhtmltopdf is a Django app that integrates the wkhtmltopdf command-line tool to render HTML templates directly to PDF files within your Django views. It wraps the external wkhtmltopdf binary and exposes it through Django view classes, allowing you to generate PDF documents from your existing HTML templates with minimal configuration.
The package depends only on six and requires you to install the wkhtmltopdf binary separately on your system along with the libfontconfig library. It has been marked abandoned since early 2023, with the last commit in January 2023 and no releases since February 2022, meaning it will not receive updates for newer Django or Python versions.
Use it for
- Generate PDF invoices or receipts from Django templates in web applications.
- Create downloadable PDF reports from database queries rendered as HTML.
- Export user-facing web pages to PDF format for archival or sharing.
- Build PDF generation endpoints in Django REST APIs that return PDF files.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned with no maintenance since early 2023 and classifiers indicate support only for Python 2.6–3.4, making it incompatible with modern Python and Django versions. If you need HTML-to-PDF in Django, consider actively maintained alternatives instead.
Install
django-wkhtmltopdf on PyPI
Before you install
Installation is straightforward (low friction), but the package is abandoned as of 2023 with no recent maintenance. The last commit was 2023-01-23 and no updates have been released since 2022-02-24, so security patches and compatibility fixes are unlikely.
Requires the wkhtmltopdf static binary to be installed separately on the system and libfontconfig as a system dependency (e.g., via package manager).
License in practice
Licensed under BSD-2-Clause (permissive), allowing commercial and private use with minimal restrictions, though you should retain the license notice in distributions.
Quickstart
pip install django-wkhtmltopdf
# In settings.py:
INSTALLED_APPS = ['wkhtmltopdf', ...]
# In views.py:
from wkhtmltopdf.views import PDFTemplateView
class MyPDFView(PDFTemplateView):
template_name = 'my_template.html'
Verify before relying
- Whether the package works reliably with modern Django versions (3.2+, 4.x, 5.x) given the abandoned status and old Python version classifiers.
- Whether wkhtmltopdf binary compatibility issues have emerged on recent operating systems or architectures.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesix |
| Maintenance | Abandoned 1,632 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 174,344 / month, #10,283 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4 |
Evidence: django_wkhtmltopdf-3.4.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django html to pdf”
- django-wkhtmltopdfWraps the wkhtmltopdf binary to convert HTML to PDF within Django…
- django-weasyprintProvides Django class-based views and response classes for generating…
- xhtml2pdfConverts HTML and CSS to PDF documents using Python, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also pdfkit · wkhtmltopdf · imgkit · gotenberg-client · fpdf · weasyprint · sphinxcontrib-svg2pdfconverter · django-ckeditor · sphinx-simplepdf · gh-md-to-html