new_x
and new_y
for cell()
and multi_cell()
, replacing ln=0
, thanks to @gmischleradd_highlight()
method to insert highlight annotations: documentationoffset_rendering()
method: documentation.text_mode
property: documentationunbreakable()
section, which is not supportedlocal_context()
can now "scope" even more properties, like blend_mode
: documentationmulti_cell(align="J")
is given text with multiple paragraphs (text followed by an empty line) at once, it now renders the last line of each paragraph left-aligned,multi_cell()
always renders a cell, even if txt
is an empty string - cf. #349multi_cell(..., split_only=True)
inside an unbreakable
section - cf. #359ln
to cell()
and multi_cell()
is now deprecated, use new_x
and new_y
instead.center
to cell()
is now deprecated, use align="C"
instead.DeprecationWarning
s are not displayed by Python by default.
Hence, every time you use a newer version of fpdf2
, we strongly encourage you to execute your scripts
with the -Wd
option (cf. documentation)
in order to get warned about deprecated features used in your code.
This can also be enabled programmatically with warnings.simplefilter('default', DeprecationWarning)
.