Converts HTML to PDF using puppeteer.
Project description
django-puppeteer-pdf
==================
.. image:: https://badge.fury.io/py/django-puppeteer-pdf.png
:target: http://badge.fury.io/py/django-puppeteer-pdf
:alt: Latest version
.. image:: https://travis-ci.org/namespace/django-puppeteer-pdf.png?branch=master
:target: https://travis-ci.org/namespace/django-puppeteer-pdf
:alt: Travis-CI
.. image:: https://img.shields.io/pypi/dm/django-puppeteer-pdf.svg
:target: https://badge.fury.io/py/django-puppeteer-pdf
:alt: Number of PyPI downloads on a month
Converts HTML to PDF
--------------------
Provides Django views to wrap the HTML to PDF conversion of the `puppeteer <https://github.com/GoogleChrome/puppeteer>`_.
Forked from: `django-wkhtmltopdf <https://github.com/incuna/django-wkhtmltopdf>`_.
Requirements
------------
Install the `puppeteer-pdf cli <https://www.npmjs.com/package/puppeteer-pdf>`_.
Python 2.6+ and 3.3+ are supported.
Installation
------------
Run ``pip install django-puppeteer-pdf``.
Add ``'puppeteer_pdf'`` to ``INSTALLED_APPS`` in your ``settings.py``.
By default it will execute the first ``puppeteer-pdf`` command found on your ``PATH``.
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 <https://github.com/namespace/django-puppeteer-pdf/blob/master/LICENSE>`_ file for more details.
==================
.. image:: https://badge.fury.io/py/django-puppeteer-pdf.png
:target: http://badge.fury.io/py/django-puppeteer-pdf
:alt: Latest version
.. image:: https://travis-ci.org/namespace/django-puppeteer-pdf.png?branch=master
:target: https://travis-ci.org/namespace/django-puppeteer-pdf
:alt: Travis-CI
.. image:: https://img.shields.io/pypi/dm/django-puppeteer-pdf.svg
:target: https://badge.fury.io/py/django-puppeteer-pdf
:alt: Number of PyPI downloads on a month
Converts HTML to PDF
--------------------
Provides Django views to wrap the HTML to PDF conversion of the `puppeteer <https://github.com/GoogleChrome/puppeteer>`_.
Forked from: `django-wkhtmltopdf <https://github.com/incuna/django-wkhtmltopdf>`_.
Requirements
------------
Install the `puppeteer-pdf cli <https://www.npmjs.com/package/puppeteer-pdf>`_.
Python 2.6+ and 3.3+ are supported.
Installation
------------
Run ``pip install django-puppeteer-pdf``.
Add ``'puppeteer_pdf'`` to ``INSTALLED_APPS`` in your ``settings.py``.
By default it will execute the first ``puppeteer-pdf`` command found on your ``PATH``.
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 <https://github.com/namespace/django-puppeteer-pdf/blob/master/LICENSE>`_ file for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-puppeteer-pdf-0.1.3.tar.gz
(49.1 kB
view hashes)
Built Distribution
Close
Hashes for django-puppeteer-pdf-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7ecf6d68ed4315d77f6e19108d21361faf4a67606145318f3489aaeac90924 |
|
MD5 | 8ddac8fdc3fea7af6d277c336d04263c |
|
BLAKE2b-256 | 6c9b0c37b6f396c48123b331f29f033a72465ea4da303c8dd1a3c28c48e67cf5 |
Close
Hashes for django_puppeteer_pdf-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175ae4b3471088bd1d70f64e9d9a3369f865934450ca8b6809d58c9a5aabc85c |
|
MD5 | 7d5f47a1ce4740c96010b454db4c0733 |
|
BLAKE2b-256 | a76ca339b54a352e36f312c64c556b28c0778deddb9f9e52e0c4872cb0e6a81e |