{ "info": { "author": "Christopher Glass", "author_email": "tribaal@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Other Environment", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Topic :: Documentation", "Topic :: Multimedia", "Topic :: Office/Business", "Topic :: Printing", "Topic :: Text Processing", "Topic :: Text Processing :: Filters", "Topic :: Text Processing :: Fonts", "Topic :: Text Processing :: General", "Topic :: Text Processing :: Indexing", "Topic :: Text Processing :: Markup", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Text Processing :: Markup :: XML", "Topic :: Utilities" ], "description": "*********\r\nxhtml2pdf\r\n*********\r\n\r\nHTML/CSS to PDF converter based on Python patched to use Pillow >= 2.7.0,<=2.8.0\r\n\r\nAbout\r\n=====\r\n\r\n``xhtml2pdf`` is a html2pdf converter using the ReportLab Toolkit,\r\nthe HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3).\r\nIt is completely written in pure Python so it is platform independent.\r\n\r\nThe main benefit of this tool that a user with Web skills like HTML and CSS\r\nis able to generate PDF templates very quickly without learning new\r\ntechnologies.\r\n\r\nRequirements\r\n============\r\n\r\n#. `Reportlab Toolkit 2.2+ `_\r\n#. `html5lib 0.11.1+ `_\r\n#. `pyPdf 1.11+ (optional) `_\r\n\r\n All requirements are listed in ``requirements.txt`` file.\r\n\r\nDevelopment environment\r\n=======================\r\n\r\nPython, virtualenv and dependencies\r\n-----------------------------------\r\n\r\n#. Install Python 2.6.x or 2.7.x. Installation steps depends on yours operating system.\r\n\r\n#. Install Pip, the python package installer::\r\n\r\n sudo easy_install pip\r\n\r\n For more information about ``pip`` refer to http://www.pip-installer.org/.\r\n\r\n#. I will recommend using ``virtualenv`` for development. This is great to have separate environment for\r\n each project, keeping the dependencies for multiple projects separated::\r\n\r\n sudo pip install virtualenv\r\n\r\n For more information about ``virtualenv`` refer to http://www.virtualenv.org/\r\n\r\n#. Create virtualenv for the project. This can be inside the project directory, but cannot be under\r\n version control::\r\n\r\n virtualenv --distribute xhtml2pdfenv\r\n\r\n#. Activate your virtualenv::\r\n\r\n source xhtml2pdfenv/bin/activate\r\n\r\n Later to deactivate use::\r\n\r\n deactivate\r\n\r\n#. Next step will be to install/upgrade dependencies from ``requirements.txt`` file::\r\n\r\n pip install -r requirements.txt\r\n\r\n#. Run tests to check you configuration::\r\n\r\n nosetests --with-coverage\r\n\r\n You should have log with success status::\r\n\r\n Ran 35 tests in 0.322s\r\n\r\n OK\r\n\r\nPython integration\r\n==================\r\n\r\nSome simple demos of how to integrate xhtml2pdf into\r\na Python program may be found here: test/simple.py\r\n\r\nContributing\r\n============\r\n\r\nDevelopment for this software happend on github, and the main fork is\r\ncurrently at https://github.com/chrisglass/xhtml2pdf\r\n\r\nContributions are welcome in any format, but using github's pull request\r\nsystem is very highly preferred since it makes review and integration\r\nmuch easier.\r\n\r\nRunning tests\r\n=============\r\n\r\nTwo different test suites are available to assert xhtml2pdf works reliably:\r\n\r\n#. Unit tests. The unit testing framework is currently minimal, but is being\r\n improved on a daily basis (contributions welcome). They should run in the\r\n expected way for Python's unittest module, i.e.::\r\n\r\n nosetests --with-coverage (or your personal favorite)\r\n\r\n#. Functional tests. Thanks to mawe42's super cool work, a full functional\r\n test suite lives in testrender/.\r\n\r\nContact\r\n=======\r\n\r\n* IRC: #xhtml2pdf on freenode\r\n* Mailing list: xhtml2pdf@googlegroups.com\r\n* Google group: http://groups.google.com/group/xhtml2pdf\r\n\r\nMaintainer: Chris Glass \r\n\r\nLicense\r\n=======\r\n\r\nCopyright 2010 Dirk Holtwick, holtwick.it\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Goldmund-Wyldebeast-Wunderliebe/xhtml2pdf-legacy", "keywords": "PDF,HTML,XHTML,XML,CSS", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "xhtml2pdf-legacy", "package_url": "https://pypi.org/project/xhtml2pdf-legacy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xhtml2pdf-legacy/", "project_urls": { "Homepage": "https://github.com/Goldmund-Wyldebeast-Wunderliebe/xhtml2pdf-legacy" }, "release_url": "https://pypi.org/project/xhtml2pdf-legacy/3.0.38/", "requires_dist": null, "requires_python": null, "summary": "PDF generator using HTML and CSS", "version": "3.0.38" }, "last_serial": 2978815, "releases": { "3.0.34": [ { "comment_text": "", "digests": { "md5": "58a2e33e2000397c8cfdba1e925e5d36", "sha256": "00a4884c453305beb530515a02bee8de128f8c9408946584b1c4345509401f18" }, "downloads": -1, "filename": "xhtml2pdf-legacy-3.0.34.tar.gz", "has_sig": false, "md5_digest": "58a2e33e2000397c8cfdba1e925e5d36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 103803, "upload_time": "2017-06-22T14:37:58", "url": "https://files.pythonhosted.org/packages/60/9f/5c6647395ddeaa4e9439b588c2fdb9e932d9175ae7c668ad414a167a51fe/xhtml2pdf-legacy-3.0.34.tar.gz" } ], "3.0.36": [ { "comment_text": "", "digests": { "md5": "5ac925213796b0ac070372cd67e817ef", "sha256": "c77405d0061422b10d4e32510903a647e56650449ed5d0a35a0340b20841e34e" }, "downloads": -1, "filename": "xhtml2pdf-legacy-3.0.36.tar.gz", "has_sig": false, "md5_digest": "5ac925213796b0ac070372cd67e817ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 103811, "upload_time": "2017-06-26T07:55:19", "url": "https://files.pythonhosted.org/packages/e6/ee/ec6c8b57b51e03921b35b9b91010902849ba4abd40c3bd20e7f3284f9669/xhtml2pdf-legacy-3.0.36.tar.gz" } ], "3.0.37": [ { "comment_text": "", "digests": { "md5": "4890a7f5704cb9f25f2204eb1b635127", "sha256": "bcdc7d8f8a0d465b0e914c97cc3179808d6e90e5163e530ef62a09626fe7616b" }, "downloads": -1, "filename": "xhtml2pdf-legacy-3.0.37.tar.gz", "has_sig": false, "md5_digest": "4890a7f5704cb9f25f2204eb1b635127", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 103819, "upload_time": "2017-06-26T08:19:44", "url": "https://files.pythonhosted.org/packages/50/24/f7e908e1ed5b7563b887883b90dee12c0d873b4dedfa82d64bb5d5b66b32/xhtml2pdf-legacy-3.0.37.tar.gz" } ], "3.0.38": [ { "comment_text": "", "digests": { "md5": "0e28092f8115773620a6bf2c608738e2", "sha256": "d4629cee6e864a9aeadec4982de841a3d1c6542c97a7b635ba0cf0912e9b9fa7" }, "downloads": -1, "filename": "xhtml2pdf-legacy-3.0.38.tar.gz", "has_sig": false, "md5_digest": "0e28092f8115773620a6bf2c608738e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 103818, "upload_time": "2017-06-26T08:32:49", "url": "https://files.pythonhosted.org/packages/e8/8c/42707f32fde5a5da9cd95b01d865d3859255ab5f702dc57a1797bd628305/xhtml2pdf-legacy-3.0.38.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e28092f8115773620a6bf2c608738e2", "sha256": "d4629cee6e864a9aeadec4982de841a3d1c6542c97a7b635ba0cf0912e9b9fa7" }, "downloads": -1, "filename": "xhtml2pdf-legacy-3.0.38.tar.gz", "has_sig": false, "md5_digest": "0e28092f8115773620a6bf2c608738e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 103818, "upload_time": "2017-06-26T08:32:49", "url": "https://files.pythonhosted.org/packages/e8/8c/42707f32fde5a5da9cd95b01d865d3859255ab5f702dc57a1797bd628305/xhtml2pdf-legacy-3.0.38.tar.gz" } ] }