Skip to main content

Converts HTML to PDF using puppeteer.

Project description


.. image::
:alt: Latest version

.. image::
:alt: Travis-CI

.. image::
: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 <>`_.

Forked from: `django-wkhtmltopdf <>`_.


Install the `puppeteer-pdf cli <>`_.

Python 2.6+ and 3.3+ are supported.


Run ``pip install django-puppeteer-pdf``.

Add ``'puppeteer_pdf'`` to ``INSTALLED_APPS`` in your ````.

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 ````: ::

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 ```` to a dictionary
of default command-line options.

The default is: ::

'format': 'A4',


Documentation is available at


MIT licensed. See the bundled `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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_puppeteer_pdf-0.1.3-py2.py3-none-any.whl (14.4 kB) Copy SHA256 hash SHA256 Wheel 2.7
django-puppeteer-pdf-0.1.3.tar.gz (49.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page