--- id: django-wkhtmltopdf version: "3.4.0" license: BSD-2-Clause license_treatment: permissive maintenance: abandoned --- # django-wkhtmltopdf — Converts HTML to PDF using wkhtmltopdf. License: permissive · Maintenance: abandoned · Downloads: 174.3K/mo ## 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 above — verify before relying. Wraps the wkhtmltopdf binary to convert HTML to PDF within Django views, providing a Django app that handles HTML-to-PDF rendering. 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 pip install django-wkhtmltopdf uv add django-wkhtmltopdf poetry add django-wkhtmltopdf ## Installing django-wkhtmltopdf 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. 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' Requires the wkhtmltopdf static binary to be installed separately on the system and libfontconfig as a system dependency (e.g., via package manager). 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: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 174.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django html to pdf, wkhtmltopdf django integration, convert html pdf django, django pdf generation, html pdf converter django, pdf-generation, abandoned [View on SkillFed](https://skillfed.io/packages/django-wkhtmltopdf) · [View on PyPI](https://pypi.org/project/django-wkhtmltopdf/)