Skip to content

HACKTOBERFEST! Detect oversized images, new methods to draw arcs & regular polygons, improved documentation

Compare
Choose a tag to compare
@Lucas-C Lucas-C released this 16 Nov 14:27
· 728 commits to master since this release

Added

Fixed

  • All graphics state manipulations are now possible within a rotation context, thanks to @gmischler
  • The exception making the "x2" template field optional for barcode elements did not work correctly, fixed by @gmischler
  • It is now possible to get back to a previous page to add more content, e.g. with a 2-column layout, thanks to @paulacampigotto

Changed

  • All template elements now have a transparent default background instead of white, thanks to @gmischler
  • To reduce the size of generated PDFs, no SMask entry is inserted for images that are fully opaque
    (= with an alpha channel containing only 0xff characters)
  • The rect, ellipse & circle all have a style parameter in common.
    They now all properly accept a value of "D" and raise a ValueError for invalid values.

Deprecated

  • dashed_line() is now deprecated in favor of set_dash_pattern()