<commit_before>django-wkhtmltopdf
==================

.. image:: https://travis-ci.org/incuna/django-wkhtmltopdf.png
   :target: https://travis-ci.org/incuna/django-wkhtmltopdf


Converts html to PDF
--------------------

Provides a thin Django wrapper for the `wkhtmltopdf`_ binary.

.. _wkhtmltopdf: http://wkhtmltopdf.org/

Requirements
------------

Install the `wkhtmltopdf`_ binary.

This requires libfontconfig (on Ubuntu: ``sudo aptitude install libfontconfig``).

.. _wkhtmltopdf: http://wkhtmltopdf.org/downloads.html

Python 2.6+ through 3.4 is supported.


Installation
------------

Run ``pip install django-wkhtmltopdf``.

Add ``'wkhtmltopdf'`` to ``INSTALLED_APPS`` in your ``settings.py``.

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:
<commit_msg>Correct Python versions in Readme<commit_after>django-wkhtmltopdf
==================

.. image:: https://travis-ci.org/incuna/django-wkhtmltopdf.png
   :target: https://travis-ci.org/incuna/django-wkhtmltopdf


Converts html to PDF
--------------------

Provides a thin Django wrapper for the `wkhtmltopdf`_ binary.

.. _wkhtmltopdf: http://wkhtmltopdf.org/

Requirements
------------

Install the `wkhtmltopdf`_ binary.

This requires libfontconfig (on Ubuntu: ``sudo aptitude install libfontconfig``).

.. _wkhtmltopdf: http://wkhtmltopdf.org/downloads.html

Python 2.6+ and 3.3+ is supported.


Installation
------------

Run ``pip install django-wkhtmltopdf``.

Add ``'wkhtmltopdf'`` to ``INSTALLED_APPS`` in your ``settings.py``.

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:

{'fraction_non_alphanumeric': 0.18107667210440456, 'fraction_numerical': 0.004350190320826536, 'mean_word_length': 3.6582278481012658, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3648351', 'n_tokens_mistral': 650, 'n_tokens_neox': 596, 'n_words': 170}