pax_global_header00006660000000000000000000000064136105222140014506gustar00rootroot0000000000000052 comment=236a81bd1ab7052f91522a6bef341ca6e2c92979 xhtml2pdf-0.2.4/000077500000000000000000000000001361052221400134215ustar00rootroot00000000000000xhtml2pdf-0.2.4/.coveragerc000066400000000000000000000001331361052221400155370ustar00rootroot00000000000000[run] branch = True source = xhtml2pdf omit = /usr/share/* [report] precision = 2 xhtml2pdf-0.2.4/.gitignore000066400000000000000000000007101361052221400154070ustar00rootroot00000000000000*.py[cod] # C extensions *.so # Backup files *~ # Packages *.egg *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg lib lib64 # Installer logs pip-log.txt # Unit test / coverage reports .eggs/ .coverage .tox nosetests.xml htmlcov testrender/output # Translations *.mo # Mr Developer .mr.developer.cfg .project .pydevproject .venv # Complexity output/*.html output/*/index.html # Sphinx docs/_build .settings/ xhtml2pdf.sh xhtml2pdf-0.2.4/.travis.yml000066400000000000000000000011351361052221400155320ustar00rootroot00000000000000language: python sudo: false python: - "2.7" - "3.4" - "3.5" - "3.6" - "3.7-dev" - "pypy" - "pypy3" env: - RL=30 - RL=31 - RL=32 - RL=33 - RL=34 matrix: fast_finish: true allow_failures: - python: "3.7-dev" - python: "pypy3" install: - TOX_ENV=py${TRAVIS_PYTHON_VERSION}-rl${RL} - pip install tox coveralls Sphinx sphinx-rtd-theme nose script: tox -e $TOX_ENV after_success: coveralls $COVERALLS_OPTION notifications: irc: "chat.freenode.net#xhtml2pdf" before_script: - cd doc/source ; sphinx-build -nW -b html -d _build/doctrees . _build/html ; cd ../.. xhtml2pdf-0.2.4/AUTHORS.rst000066400000000000000000000022461361052221400153040ustar00rootroot00000000000000======= AUTHORS ======= ..note: This document is outdated, please look at https://github.com/xhtml2pdf/xhtml2pdf/graphs/contributors The following people contributed to xhtml2pdf in some fashion Main developers =============== * Dirk Holtwick (Main developer, no longer active) * Christopher Glass (no longer active) * Benjamin Bach (maintainer since '15) Contributors ============ In no particular order. Names are taken from git logs, please contact the maintainer should theses names be changed to something more relevant. * Kenji Noguschi * Pascal Bach * peipei * Vehbi Sinan Tunalioglu * Nathan Duthoit * Alan Justino * David Tran * Orestis Markou * Yang Bo * David Szotten * Jim Thaxton * Philippe Raoult * Stefan Foulis * Ethan Jucovy * Marcus Weseloh * Jacob Richardson * Krzysztof Grodzicki * Ted Liang * fsx999 * Andrea Bravetti * Dale O'Brien * Bertrand Bordage * "tomscytale" * Nick Pack * Jeff Tchang * Andreas Stocker * Dylan Jay * mthornhill * Andrea Bravetti * Stéphane Bisinger * Ling Thio * Edwar Baron Special thanks ============== Dirk Holtwick, for opening the source to such a cool library :) Thanks! Marcus Weseloh, for such a badass functional test suite. xhtml2pdf-0.2.4/CHANGELOG.txt000066400000000000000000000444261361052221400154630ustar00rootroot00000000000000========= CHANGELOG ========= Version 0.2 ----------------- * Improve python3 support - thanks ***luisza, andreyfedoseev and flupzor *** * Include new Httplibs options - thanks ***luisza*** * Support to background image - thanks ***flupzor*** * Remove python23 support - thanks ***flupzor*** * Transparent images work again in Python 3 - thanks ***flupzor*** * Readthedocs integration - thanks ***luisza*** * Update Django demo site - thanks ***luisza*** * PEP8 and cleanup code - thanks ***luisza*** * Drop the turbogears module - thanks ***browniebroke*** Version 0.1alpha4 ----------------- * Removed PyPy support * Avoid exceptions likely to occur systematic to how narrow a text column is #309 - thanks ***jkDesignDE*** * Improved tests for tables #305 - thanks ***taddeimania*** * Fix broken empty PDFs in Python2 #301 - thanks ***citizen-stig*** * Unknown page sizes now raise an exception #71 - thanks ***benjaoming*** * Unorderable types caused by duplicate CSS selectors / rules #69 - thanks ***benjaoming*** * Allow empty page definition with no space after @page - #88 - thanks ***benjaoming*** * Error when in addFromFile using file-like object #245 - thanks ***benjaoming*** * Python 3: Bad table formatting with empty columns #279 - thanks ***citizen-stig and benjaoming*** * Removed paragraph2.py, unused ghost file since the beginning of the project #289 - thanks ***citizen-stig*** * Catch-all exceptions removed in a lot of places, not quite done #290 - thanks ***benjaoming*** Version 0.1alpha3 ----------------- * Improved six usage, simplifies codebase #288 - thanks ***citizen-stig*** * Removed mutable types as default args #287 - thanks ***citizen-stig*** * Fix "hangs forever on simple input" #209 * Base64 inline works now #281 Version 0.1alpha2 ----------------- * Fixed: AttributeError: 'bytes' object has no attribute 'encode' #265 * Improved tests, added code coverage Version 0.1alpha1 ----------------- This major version bump signals that we have added Python 3 support. Other than that, the project remains largely unchanged. * Python 3 support * Cleaning up codebase * Github and documentation modernizations Version 0.0.6 ------------- * get css backgrounds and fonts relative to the css file path * fix CSS parser breaking on "@media screen and ..." (issue 132) Version 0.0.5 ------------- * Switched dependency to Pillow instead of PIL. * Converted the docs to rst (thanks tomscytale!) * Huge performance improvements (thanks Andrea Bravetti!) * Bugfixes. Version 0.0.4 ------------- * Added a tag to write the total number of pages. * The tag now accepts a fontsize argument for the human-readable font. * Various bugfixes and enhancements LEGACY ====== The following changelog entries were relevant before the maintainer change. ******************************************************************************** "I would like to thank the people mentioned in brackets in this change log very much for their help and support!" - Dirk ******************************************************************************** Version 3.0.33, 2010-06-16 - NEW: Changed license to Apache License 2.0, now completely Open Source without any charging. Feel free to continue or for this project. - FIX: Empty cells now collapse Version 3.0.32, 2009-05-08 - NEW: New command line option '--base' to specify base path if input comes via STDIN - FIX: The 'keep in frame' feature for tables did not work inside of static frames (Arun Shanker Prasad) - FIX: Small typos Version 3.0.31, 2009-05-04 - NEW: Support for Style "list-style-image", also supports "zoom" - NEW: Temporary files internally are written to disk if they exceed a certain size - NEW: Font names can now also read from external URL - UPD: Modified pdfjoiner.py demo - FIX: Custom font image problem still appeared - FIX: Single image in a block issue - FIX: Randomly used wrong images is fixed using a workaround for the bug in Reportlab _digester routine - FIX: Empty tables error (Davide Moro) - FIX: Fallback to urllib2 if httpdlib fails Version 3.0.30, 2009-03-27 - NEW: Default CSS now hides content of