Skip to main content

django-uwkhtmltopdf

A simple Django app to generate pdfs from templates using wkhtmltopdf.

The code is basically a fork of django-xhtml2pdf that uses wkhtmltopdf to avoid xhtml2pdf shortcomings.

Please note that the app is thought to be simple not feature rich.

Usage

In settings.py:

WKHTMLTOPDF_CMD = ‘/path/to/wkhtmltopdf’

In views.py:

from django_uwkhtmltopdf.utils import generate_pdf

def myview(response):

resp = HttpResponse(content_type=’application/pdf’) result = generate_pdf(‘my_template.html’, file_object=resp) return result

Metadata

Release files for django-uwkhtmltopdf 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-uwkhtmltopdf 0.5.0
File Size Uploaded
django-uwkhtmltopdf-0.5.0.tar.gz 4.7 kB Details

Release files / django-uwkhtmltopdf-0.5.0.tar.gz

Download URL django-uwkhtmltopdf-0.5.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5ce4c13acf863080c7646bfc84b64a5191bb6d8bde2b041ad300c137c96a797f
BLAKE2b-256 checksum
How to use checksums
8ad726b09fef1b9955511db0b764ea2c0c2794cd997790c936e3f0d30f73f7d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.0 This release

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page