You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support for description list (<dl>), description titles (<dt>), description details (<dd>) and code blocks (<code></code>) in write_html() - thanks to @yk-jp & @seanpmulholland
support for monochromatic images (PIL image.mode == '1') thanks to @GerardoAllende
the 1000+ unit tests suite is now executed under Linux and Windows, with extra timing & memory usage checks ensuring we control fpdf2 resource usage
the SVG parser now accepts stroke-width attribute values with an explicit unit, thanks to @gmischler; #526
the SVG parser now accepts absolute units for width and height attributes, thanks to @darioackermann; #555
write_html() method now correctly handles whitespace when parsing HTML. <pre></pre> blocks still maintain spaces, tabs and line breaks.
Changed
the first parameter of FPDF.add_font() is now optional: if it is not provided, the base name of the fname font path is used to define the font family. Hence pdf.add_font(fname="fonts/NotoSansArabic.ttf") will define a font named NotoSansArabic.
the output of embed_file() is now a PDFEmbeddedFile, not a string, but the internal file name can be retrieved through its .basename property
forbid use of get_y() & local_context() inside unbreakable() as it is currently not supported; #557
fontTools minimal version requirement set to 4.34.0; #524