django-wkhtmltopdf


Namedjango-wkhtmltopdf JSON
Version 3.4.0 PyPI version JSON
download
home_pagehttps://github.com/incuna/django-wkhtmltopdf
SummaryConverts HTML to PDF using wkhtmltopdf.
upload_time2022-02-24 23:26:04
maintainer
docs_urlNone
authorIncuna Ltd
requires_python
licenseBSD-2-Clause
keywords django wkhtmltopdf pdf
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            django-wkhtmltopdf
==================

.. image:: https://badge.fury.io/py/django-wkhtmltopdf.png
    :target: http://badge.fury.io/py/django-wkhtmltopdf
    :alt: Latest version

.. image:: https://travis-ci.org/incuna/django-wkhtmltopdf.png?branch=master
   :target: https://travis-ci.org/incuna/django-wkhtmltopdf
   :alt: Travis-CI

.. image:: https://img.shields.io/pypi/dm/django-wkhtmltopdf.svg
    :target: https://badge.fury.io/py/django-wkhtmltopdf
    :alt: Number of PyPI downloads on a month


Converts HTML to PDF
--------------------

Provides Django views to wrap the HTML to PDF conversion of the `wkhtmltopdf <http://wkhtmltopdf.org>`_ binary.

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

Install the `wkhtmltopdf static binary <http://wkhtmltopdf.org/downloads.html>`_.

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

Python 2.6+ and 3.3+ are 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 executable:

e.g. in ``settings.py``: ::

    WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf'

or alternatively as env variable: ::

    export WKHTMLTOPDF_CMD=/path/to/my/wkhtmltopdf

You may also set ``WKHTMLTOPDF_CMD_OPTIONS`` in ``settings.py`` to a dictionary
of default command-line options.

The default is: ::

    WKHTMLTOPDF_CMD_OPTIONS = {
        'quiet': True,
    }

Documentation
-------------

Documentation is available at http://django-wkhtmltopdf.readthedocs.org/en/latest/.

License
-------

MIT licensed. See the bundled `LICENSE <https://github.com/incuna/django-wkhtmltopdf/blob/master/LICENSE>`_ file for more details.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/incuna/django-wkhtmltopdf",
    "name": "django-wkhtmltopdf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django wkhtmltopdf pdf",
    "author": "Incuna Ltd",
    "author_email": "admin@incuna.com",
    "download_url": "https://files.pythonhosted.org/packages/c1/c0/bcb57d3cfa364e0a98aba92b15132b629f69d27d362256577f611f8f0f35/django-wkhtmltopdf-3.4.0.tar.gz",
    "platform": "",
    "description": "django-wkhtmltopdf\n==================\n\n.. image:: https://badge.fury.io/py/django-wkhtmltopdf.png\n    :target: http://badge.fury.io/py/django-wkhtmltopdf\n    :alt: Latest version\n\n.. image:: https://travis-ci.org/incuna/django-wkhtmltopdf.png?branch=master\n   :target: https://travis-ci.org/incuna/django-wkhtmltopdf\n   :alt: Travis-CI\n\n.. image:: https://img.shields.io/pypi/dm/django-wkhtmltopdf.svg\n    :target: https://badge.fury.io/py/django-wkhtmltopdf\n    :alt: Number of PyPI downloads on a month\n\n\nConverts HTML to PDF\n--------------------\n\nProvides Django views to wrap the HTML to PDF conversion of the `wkhtmltopdf <http://wkhtmltopdf.org>`_ binary.\n\nRequirements\n------------\n\nInstall the `wkhtmltopdf static binary <http://wkhtmltopdf.org/downloads.html>`_.\n\nThis requires libfontconfig (on Ubuntu: ``sudo aptitude install libfontconfig``).\n\nPython 2.6+ and 3.3+ are supported.\n\n\nInstallation\n------------\n\nRun ``pip install django-wkhtmltopdf``.\n\nAdd ``'wkhtmltopdf'`` to ``INSTALLED_APPS`` in your ``settings.py``.\n\nBy default it will execute the first ``wkhtmltopdf`` command found on your ``PATH``.\n\nIf you can't add wkhtmltopdf to your ``PATH``, you can set ``WKHTMLTOPDF_CMD`` to a\nspecific executable:\n\ne.g. in ``settings.py``: ::\n\n    WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf'\n\nor alternatively as env variable: ::\n\n    export WKHTMLTOPDF_CMD=/path/to/my/wkhtmltopdf\n\nYou may also set ``WKHTMLTOPDF_CMD_OPTIONS`` in ``settings.py`` to a dictionary\nof default command-line options.\n\nThe default is: ::\n\n    WKHTMLTOPDF_CMD_OPTIONS = {\n        'quiet': True,\n    }\n\nDocumentation\n-------------\n\nDocumentation is available at http://django-wkhtmltopdf.readthedocs.org/en/latest/.\n\nLicense\n-------\n\nMIT licensed. See the bundled `LICENSE <https://github.com/incuna/django-wkhtmltopdf/blob/master/LICENSE>`_ file for more details.\n\n\n",
    "bugtrack_url": null,
    "license": "BSD-2-Clause",
    "summary": "Converts HTML to PDF using wkhtmltopdf.",
    "version": "3.4.0",
    "split_keywords": [
        "django",
        "wkhtmltopdf",
        "pdf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc6b8a8302e04b8af78862c7505dd5eafb1854e091b83741ecb166137a4aca31",
                "md5": "89400b9e8e8fab671bf280b59cb1093e",
                "sha256": "c954d016b84b195bb52d8a22a1ed1c5e4eb499c9aa8f6aed89dac57247fc8fc1"
            },
            "downloads": -1,
            "filename": "django_wkhtmltopdf-3.4.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89400b9e8e8fab671bf280b59cb1093e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 15946,
            "upload_time": "2022-02-24T23:26:02",
            "upload_time_iso_8601": "2022-02-24T23:26:02.852312Z",
            "url": "https://files.pythonhosted.org/packages/fc/6b/8a8302e04b8af78862c7505dd5eafb1854e091b83741ecb166137a4aca31/django_wkhtmltopdf-3.4.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1c0bcb57d3cfa364e0a98aba92b15132b629f69d27d362256577f611f8f0f35",
                "md5": "c09e3d53e5fdde0c393586fbafee836f",
                "sha256": "b12222a6c588c645d62d971a2a34e3802ac76023cf94c557068f39f478b2b984"
            },
            "downloads": -1,
            "filename": "django-wkhtmltopdf-3.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c09e3d53e5fdde0c393586fbafee836f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12950,
            "upload_time": "2022-02-24T23:26:04",
            "upload_time_iso_8601": "2022-02-24T23:26:04.290778Z",
            "url": "https://files.pythonhosted.org/packages/c1/c0/bcb57d3cfa364e0a98aba92b15132b629f69d27d362256577f611f8f0f35/django-wkhtmltopdf-3.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-02-24 23:26:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "incuna",
    "github_project": "django-wkhtmltopdf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "test_requirements": [
        {
            "name": "django-discover-runner",
            "specs": [
                [
                    "==",
                    "1.0"
                ]
            ]
        }
    ],
    "lcname": "django-wkhtmltopdf"
}
        
Elapsed time: 0.05112s