Xhtml2pdf Versions Save

A library for converting HTML into PDFs using ReportLab

v0.2.13

6 months ago

๐Ÿ› Bug fixes

  • [ #731 ] Fix TypeError on column widths specified as percentages
  • [ #730 ] Fix TypeError when formatting width in debug logging

Thanks to the following people for contributing to this release: @JanEgner @timobrembeck

v0.2.12

6 months ago

๐Ÿ› Bug fixes

  • [ #106 ] Fix page number & page count
  • [ #723 ] Fix ZeroDivisionError on broken image files

๐Ÿ“˜ Documentation

  • [ #707 ] Update README
  • [ #711 ] Modernize Sphinx configuration

๐Ÿงน Cleanup

  • [ #700 ] Change print statement to log.exception
  • [ #706 ] Remove Python2 compatibility
  • [ #705 ] Depend on html5lib >= 1.1
  • [ #699 ] Depend on reportlab >= 4.0.4
  • [ #714 ] Use black code style
  • [ #715 ] Enforce consistent file formatting
  • [ #716 ] Add ruff code linter
  • [ #717 ] Start using type hints & validate them via mypy
  • [ #718 ] Drop support for Python 3.7 (reached end of life on 2023-06-27)
  • [ #719 ] Add support for Python 3.12 (released on 2023-10-02)

Thanks to the following people for contributing to this release: @JanEgner @lucasgadams @a-detiste @holtwick @stefan6419846 @timobrembeck

v0.2.11

1 year ago

This release only aims to fix issues with pycairo and xhtml2pdf dependencies with reportlab.

0.2.10

1 year ago

This is a bug fixes release changes here:

  • Fix canvas graph
  • Remove duplicate pypdf entry from setup.py

Thanks to the following people on GitHub for contributing to this release: @brandonlake-semaphore, @sunpoet

0.2.9

1 year ago

Released: 2023-01-30

Important notes

  • Text RTL has new implementation but I am not sure if works as required, more works need so use it, for text and let me know if it's works.

๐ŸŽ‰ New

  • OL tag allow start counter
  • Div, P, And Body allows dir attribute (rtl and ltr) to provide text direction

๐Ÿ’ช๐Ÿผ Improvements

  • Page counter and Page number are now available as simple text inside paragraphs
  • New regex for strip up to curly bracket
  • Change pyPDF3 to pypdf.

Thanks to the following people on GitHub for contributing to this release:

@BergLucas, @matllubos, @timoludwig, @MartinThoma, @charludo, @jorenham

v0.2.8

1 year ago

๐Ÿ› Bug-Fixes

  • Fix background-image issues with #614 and pull requests with #619
  • Fix CSSParseError for minified @font-face definitions #609
  • Fixed a few typos and grammar mistakes in usage.rst documentation. #610

v0.2.7

2 years ago

๐ŸŽ‰ New

  • Add encryption and password protection
  • New WaterMark management system with new options
  • Add Graphic builder
  • Add signing pdfs (simple and pades)

๐Ÿ› Bug-Fixes

  • Remove import cycle between utils and default
  • Fixed link_callback construction of path
  • Fixed path when is relative to current path

โš ๏ธ Deprecation

  • xhtml in pisa.CreatePDF support will removed on next release
  • XML2PDF and XHTML2PDF will be removed on next release use HTML2PDF instead

๐Ÿ“˜ Documentation

  • Add render pdf on documentation and add some html example.
  • Include graphics examples

| Thanks to the following people on GitHub for contributing to this release: | @marcelagz for graphics support :)

v0.2.6

2 years ago
  • Drop python 2 support.
  • Remove most of python 2 code and cleanup
  • Update packages dependencies
  • Remove six dependency and update Readme
  • Set timeout in https options
  • Add new file manager approach using factory method, now new classes deal with different types of data B64InlineURI, LocalProtocolURI, NetworkFileUri, LocalFileURI, BytesFileUri
  • Now getColor return None when None is passed ignoring default value, but return default if bool(data) == false
  • rtl languages reversed lines added as a ParaFrag (note: not fully supported yet)
  • Check if Paragraph has 'rtl' attribute (note: not fully supported yet)
  • Fix UnboundLocalError in reportlab_paragraph (#585) (#586)
  • Remove usage of getStringIO (#590) removed form reportlab
  • Change test for github workflow using only Linux
  • Add Python 3.9, 3.10
  • Switch from PyPDF2 to PyPDF3
  • Add SVG support
  • Update package information.
  • Allow call tests using make.

0.2.4

4 years ago

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.

0.2.2

6 years ago

Include new python version in test and change requirements to force html5lib to 1.0.1.