Skip to main content

dj-wkhtmltopdf

It works on wkhtmltopdf . dj-wkhtmltopdf will allow user to organize their own pdf generator through django admin without any deployment :).

Mainly I was inspired by django-wkhtmltopdf . When I am working on Eccomerce project we want to generate invoice for orders.So we preferred wkhtmltopdf for pdf generator using django-wkhtmltopdf wrapper. Every time we are doing some modifications in local server and pushing this modifications into production but we have faced different(I mean design) issues in production,then we resolved issues in local and pushed into production,but it is so painful then I came to this thought. Requirements:

Install the wkhtmltopdf . Python 2.6+ and 3.3+ is supported. Installation:

Run pip install dj-wkhtmltopdf.

Add ‘djwkhtmltopdf’ to INSTALLED_APPS in your settings.py .

Then run the python manage.py syncdb .

By default it will execute the first wkhtmltopdf command found on your PATH .

If you can’t add wkhtmltopdf to your PATH you can set WKHTMLTOPDF_CMD to a specific execuatable:

e.g. in settings.py:

WKHTML_TO_PDF_CMD = ‘/path/to/my/wkhtmltopdf’

You may also set wkhtmltopdf options through django admin or WKHTML_OPTIONS in settings.py to a dictionary of default command-line options.

Like this is: WKHTML_OPTIONS = { ‘–quiet’: True, } Important Note:

I’ve tested it only on Ubuntu but haven’t tested it on Mac and Windows. License:

MIT licensed. See the bundled LICENSE file for more details

Release files for dj-wkhtmltopdf 1.0.2

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

Source distribution (sdist)

Source distribution for dj-wkhtmltopdf 1.0.2
File Size Uploaded
dj-wkhtmltopdf-1.0.2.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dj-wkhtmltopdf 1.0.2
File Interpreter ABI Platform
dj_wkhtmltopdf-1.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 27.0 kB

Release files / dj-wkhtmltopdf-1.0.2.tar.gz

Download URL dj-wkhtmltopdf-1.0.2.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c0eb03a7fd8bdcd7e79b5af32ec9aab725ad307399f74c64712bb23906690c4e
BLAKE2b-256 checksum
How to use checksums
1512ea9e5bda88c7f3191f224846bdf20a870e0403fd72f6bf089a31ee537e4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dj_wkhtmltopdf-1.0.2-py2.py3-none-any.whl

Download URL dj_wkhtmltopdf-1.0.2-py2.py3-none-any.whl
Size 15.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0fe5e347ed5c1ca352d6012f5b11c0b25525e5f3a9585630ad32f643c757baaf
BLAKE2b-256 checksum
How to use checksums
0c01795887a5a750a4d6b32ce824dee8d31972a65acaf71f0c86060bb376e1c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

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