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
new method FPDF.set_fallback_fonts() allow alternative fonts to be provided if a character on the text is not available on the currently set font - thanks to @andersonhc
for inserted images that have an ICC Profile, this profile is now extracted and embedded; they should now be honored by PDF viewers - thanks to @eroux
new translation of the tutorial in 简体中文 - thanks to @Bubbu0129
additional linter / static code analyser in GitHub Actions CI pipeline: semgrep
Fixed
outlines & hyperlinks were not working on encrypted files - thanks to @andersonhc
a bug was introduced in the previous release (2.6.1): FPDF.set_link() could not update links generated with add_link()
unicode (non limited to ASCII) text can now be provided as metadata #685
all TitleStyle constructor parameters are now effectively optional
memory usage was reduced by 10 MiB in some cases, thanks to a small optimization in using fonttools
Changed
FPDF.write_html() now uses the new FPDF.table() method to render <table> tags. As a consequence, vertical space before <table> tags has sometimes been reduced.
vector images parsing is now more robust: fpdf2 can now embed SVG files without viewPort or no height / width
bitonal images are now encoded using CCITTFaxDecode, reducing their size in the PDF document - thanks to @eroux
when possible, JPG and group4 encoded TIFFs are now embedded directly without recompression - thanks to @eroux
Removed
FPDF.write_html() now uses the new FPDF.table() method to render <table> tags. As a consequence, it does not support the height attribute defined on <td> / <th> tags anymore, nor height / width attributes defined on <img> tags inside cells, nor width attributes defined on <thead> / <tfoot> tags.