FPDF.bezier() to render quadratic and cubic Bézier curves, and many improvements
Note: a temporary 2.8.0 version was released but then erroneously removed on Pypi.
Versions 2.8.0 & 2.8.1 are exactly the same.
Added
support for escape character for markers in markdown text [issue #1215](py-pdf/fpdf2#1215)
Wrapping words on spaces now considers all common space symbols in addition to regular spaces (' '), addressing issues with word-wrapping for languages like Thai, as per #1190 and #1191.
support to optionally set wrapmode in templates (default "WORD" can optionally be set to "CHAR" to support wrapping on characters for scripts like Chinese or Japanese) - cf.#1159 - thanks to @carlhiggs
FPDF.write_html(): fixing rendering of <hr> tags, that do not trigger a page break anymore
FPDF.write_html(): fixed automatic page break when an image does not have enough vertical space to be rendered on a page
individual /Resources directories are now properly created for each document page. This change ensures better compliance with the PDF specification but results in a slight increase in the size of PDF documents. You can still use the old behavior by setting FPDF().single_resources_object = True
line size calculation for fragments when text shaping is used
an obscure and undocumented feature of FPDF.write_html(), which used to magically pass instance attributes as arguments.
Deprecated
fpdf.TitleStyle has been renamed into fpdf.TextStyle
FPDF.write_html(): tag_indents introduced in the last version - Now the indentation can be provided through the tag_styles parameter, using the .l_margin of TextStyle instances
Changed
FPDF.circle() : the previous r parameter, that in fact defined the diamter, has been replaced by a new radius paremeter. The x & y parameters now define the circle center, instead of its top-left corner as it used to be - [issue #1245](py-pdf/fpdf2#1245)
FPDF.table() now raises an error when a single row is too high to be rendered on a single page
FPDF.write_html(): indentation of HTML elements can now be non-integer (float), and is now independent of font size and bullet strings.
improved performance of font glyph selection by using functools cache
New translation of the tutorial in Türkçe, thanks to @natgho: Türkçe;
support for escape character for markers in markdown text [issue #1215](py-pdf/fpdf2#1215)
Wrapping words on spaces now considers all common space symbols in addition to regular spaces (' '), addressing issues with word-wrapping for languages like Thai, as per #1190 and #1191.
support to optionally set wrapmode in templates (default "WORD" can optionally be set to "CHAR" to support wrapping on characters for scripts like Chinese or Japanese) - cf.#1159 - thanks to @carlhiggs
FPDF.write_html(): fixing rendering of <hr> tags, that do not trigger a page break anymore
FPDF.write_html(): fixed automatic page break when an image does not have enough vertical space to be rendered on a page
individual /Resources directories are now properly created for each document page. This change ensures better compliance with the PDF specification but results in a slight increase in the size of PDF documents. You can still use the old behavior by setting FPDF().single_resources_object = True
line size calculation for fragments when text shaping is used
an obscure and undocumented feature of FPDF.write_html(), which used to magically pass instance attributes as arguments.
Deprecated
fpdf.TitleStyle has been renamed into fpdf.TextStyle
FPDF.write_html(): tag_indents introduced in the last version - Now the indentation can be provided through the tag_styles parameter, using the .l_margin of TextStyle instances
Changed
FPDF.circle() : the previous r parameter, that in fact defined the diamter, has been replaced by a new radius paremeter. The x & y parameters now define the circle center, instead of its top-left corner as it used to be - [issue #1245](py-pdf/fpdf2#1245)
FPDF.table() now raises an error when a single row is too high to be rendered on a single page
FPDF.write_html(): indentation of HTML elements can now be non-integer (float), and is now independent of font size and bullet strings.
improved performance of font glyph selection by using functools cache
New translation of the tutorial in Türkçe, thanks to @natgho: Türkçe;
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps fpdf2 from 2.7.9 to 2.8.1.
Release notes
Sourced from fpdf2's releases.
Changelog
Sourced from fpdf2's changelog.
Commits
7784099
v2.8.1f273bd4
v2.8.0921ad54
Fixing FPDF.circle() parameters (release 2.8.0) (#1248)4de4a2f
Adding documentation on how to use fpdf2 with Rough.js (#1260)94c937e
add bmiklautz as a contributor for doc (#1267)2abd354
Doc: mention that text() does lack features (#1265) (#1266)31688e3
[CI fixup] Extending test_intense_image_rendering() unit test test max memory...90c7d7f
Pylint: disabling new rule too-many-positional-argumentsf0e4e98
add jhenriquelc as a contributor for doc (#1264)3e5e783
ClarifyFPDF.add_font()
'sstyle
parameter accepted values (#1263)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show