This project has been archived by its maintainers, and is no longer receiving any updates.
django-puppeteer-pdf
Converts HTML to PDF
Provides Django views to wrap the HTML to PDF conversion using puppeteer.
Forked from: django-wkhtmltopdf.
Requirements
cli for puppeteer puppeteer-pdf.
Python 2.6+ and 3.3+ are supported. See travis-ci build status for details
Note
Current version is only tested as a use of django rest framework renderer examples/drf_renderer.py
Documentation is not up to date but you can see working use cases in examples directory
Reporting bugs and issues is welcomed
Installation
Run pip install django-puppeteer-pdf.
By default it will execute the first puppeteer-pdf command found on your PATH.
It is recommended to specify full path of puppeteer-pdf using one of the way mentioned below.
If you can’t add puppeteer-pdf to your PATH, you can set PUPPETEER_PDF_CMD to a specific executable:
e.g. in settings.py:
PUPPETEER_PDF_CMD = '/path/to/my/puppeteer-pdf'
or alternatively as env variable:
export PUPPETEER_PDF_CMD=/path/to/my/puppeteer-pdf
You may also set PUPPETEER_PDF_CMD_OPTIONS in settings.py to a dictionary of default command-line options.
The default is:
PUPPETEER_PDF_CMD_OPTIONS = {
'format': 'A4',
}
Documentation
Documentation is available at http://django-puppeteer-pdf.readthedocs.org/en/latest/.
License
MIT licensed. See the bundled LICENSE file for more details.
Metadata
Release files for django-puppeteer-pdf 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-puppeteer-pdf-0.1.4.tar.gz | 10.8 kB | Without provenance | Details for django-puppeteer-pdf-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_puppeteer_pdf-0.1.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_puppeteer_pdf-0.1.4-py2.py3-none-any.whl |
Total release size: 25.2 kB
Release files / django-puppeteer-pdf-0.1.4.tar.gz
| Download URL | django-puppeteer-pdf-0.1.4.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12177f078a574e8e3390a7a2cb021256690d9973d145cec8306ec13e251ce44e
|
|
BLAKE2b-256 checksum How to use checksums |
6adc47d015b136fb139662cb733ef19b37fda9c3557e91b3b535a13af46f2313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
|
Release files / django_puppeteer_pdf-0.1.4-py2.py3-none-any.whl
| Download URL | django_puppeteer_pdf-0.1.4-py2.py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
81c5e6304398096755f3469382b1e2c843779d4239d1764c0f004b4064620a6c
|
|
BLAKE2b-256 checksum How to use checksums |
b25ad9e37b7ba3cdd0d0bd74a8afacb52c4418415b53685c86a6fb8615658f16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
|
Security for django-puppeteer-pdf 0.1.4
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.