Added
FPDF.image()
: CMYK images can now be inserted directly by passing them into the image method. Contributed by @devdev29- documentation on how to embed
graphs
andcharts
generated usingPygal
lib: documentation section - thanks to @ssavi-ict - documentation on how to use
fpdf2
with FastAPI: https://pyfpdf.github.io/fpdf2/UsageInWebAPI.html#FastAPI - thanks to @KamarulAdha FPDF.write_html()
:<table>
elements can now be aligned left or right on the page usingalign=
FPDF.write_html()
: a custom font can now be specified for<code>
&<pre>
elements, using the new optional parameterpre_code_font
Fixed
FPDF.table()
: images no more overflow cellsFPDF.table()
: text overflow in the last cell of the header row is now properly handledFPDF.table()
: whenalign="RIGHT"
is provided, the page right margin is now properly taken in consideration
Changed
FPDF.write_html()
does not render the top row as a header, in bold with a line below, when no<th>
are used, in order to be more backward-compatible with earlier versions offpdf2
- cf. #740
Deprecated
- the
split_only
optional parameter ofFPDF.multi_cell()
, which is replaced by two new distincts optional parameters:dry_run
&output