pax_global_header00006660000000000000000000000064137376552770014540gustar00rootroot0000000000000052 comment=42154d59c898b09feb982a93bd3195251a166be7 xhtml2pdf-0.2.5/000077500000000000000000000000001373765527700134545ustar00rootroot00000000000000xhtml2pdf-0.2.5/.coveragerc000066400000000000000000000011161373765527700155740ustar00rootroot00000000000000[run] branch = True source = xhtml2pdf omit = /usr/share/* [report] precision = 2 # Regexes for lines to exclude from consideration exclude_lines = # Have to re-enable the standard pragma pragma: no cover # Don't complain about missing debug-only code: def __repr__ if self\.debug # Don't complain if tests don't hit defensive assertion code: raise AssertionError raise NotImplementedError # Don't complain if non-runnable code isn't run: if 0: if __name__ == .__main__.: ignore_errors = True [html] directory = coverage_html_reportxhtml2pdf-0.2.5/.gitignore000066400000000000000000000007161373765527700154500ustar00rootroot00000000000000*.py[cod] # C extensions *.so # Backup files *~ # Packages *.egg *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg .idea 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.5/.travis.yml000066400000000000000000000015551373765527700155730ustar00rootroot00000000000000language: python sudo: true python: - "3.5" - "3.6" - "3.7" - "3.8" - "pypy3" env: - RL=330 - RL=340 - RL=350 - RL=3510 - RL=3530 - RL=3550 matrix: fast_finish: true allow_failures: - env: RL=330 - env: RL=340 #TEST before_install: - sudo apt-get update - sudo apt-get install -y imagemagick - sudo apt-get install -y ghostscript - sudo sed -i 's###' /etc/ImageMagick-6/policy.xml install: - TOX_ENV=py${TRAVIS_PYTHON_VERSION}-rl${RL} - pip install tox coveralls Sphinx sphinx-rtd-theme 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.5/AUTHORS.rst000066400000000000000000000023251373765527700153350ustar00rootroot00000000000000======= 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) * Luis Zárate Montero (maintainer since 2018) 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.5/CHANGELOG.txt000066400000000000000000000472301373765527700155120ustar00rootroot00000000000000========= CHANGELOG ========= Version 0.2.5 ----------------- * Improve Readme * Fixed testrender test, fixed transparences and include new reference files, (now all test pass in travis without --failed parameter). * Add support for multiple fonts and unicode Fixed #492 * Update documentation (multiple typos were fixed) * Include Asian fonts support * Allow Custom Font Name for ttf files. * @frame properties like width, right, bottom etc. are now correctly calculated depending on the page orientation (Fixes #499) * Fixed letter-spacing CSS property. #490 "letter-spacing" now supports float values and relative and absolute units like "cm, in, em, %" etc. * Removed "i" and "inch" as unofficial synonyms for the "in" unit * "0.0" as value for a CSS property now acts the same way as "0" and "None" Version 0.2.4 ----------------- * Update link_callback documentation. * Stylize code lines in documentation. * Fixed cgi escape util on setup version. * Add test to python 3.7 and 3.8. * Fixed width assignation on fragments. * Support urllib in python 3 and python 2. * Add em unit support. * Repair base64 unscaped string. * Fixed urlparse when urls has parameters. * Fixed i_rgbcolor support. Version 0.2.1 ----------------- * Force html5lib to 1.0.1 (old versions of html5lib are not in pip). * Remove the dependency on httplib2 * Allow for URI-escaped strings in base64 data * Improve table tests. * Support python 3.8 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