pypi fpdf2 2.3.0
Unbreakable!

latest releases: 2.7.8, 2.7.7, 2.7.6...
3 years ago

Many thanks to @eumiro & @fbernhart for their contributions to make fpdf2 cleaner!

Check this blog post for an explanation on this release name.

Added

  • FPDF.unbreakable : a new method providing a context-manager in which automatic page breaks are disabled.
    cf. https://pyfpdf.github.io/fpdf2/PageBreaks.html
  • FPDF.epw & FPDF.eph : new @property methods to retrieve the effective page width / height, that is the page width / height minus its horizontal / vertical margins.
  • FPDF.image now accepts also a Pillow.Image.Image as input
  • FPDF.multi_cell parameters evolve in order to generate tables with multiline text in cells:
    • its ln parameter now accepts a value of 3 that sets the new position to the right without altering vertical offset
    • a new optional max_line_height parameter sets a maximum height of each sub-cell generated
  • new documentation pages : how to add content to existing PDFs, HTML, links, tables, text styling & page breaks
  • all PDF samples are now validated using 3 different PDF checkers

Fixed

  • FPDF.alias_nb_pages: fixed this feature that was broken since v2.0.6
  • FPDF.set_font: fixed a bug where calling it several times, with & without the same parameters,
    prevented strings passed first to the text-rendering methods to be displayed.

Deprecated

  • the dest parameter of FPDF.output method

Don't miss a new fpdf2 release

NewReleases is sending notifications on new releases.