Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for django-puppeteer-pdf, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size django_puppeteer_pdf-0.1.3-py2.py3-none-any.whl (14.4 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size django-puppeteer-pdf-0.1.3.tar.gz (49.1 kB) File type Source Python version None Upload date Hashes View hashes

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