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 Provenance Actions
django-uwkhtmltopdf-0.5.0.tar.gz 4.7 kB Without provenance Details for django-uwkhtmltopdf-0.5.0.tar.gz

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

Security for django-uwkhtmltopdf 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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