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
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ This can also be enabled programmatically with `warnings.simplefilter('default',
26
26
* documentation on [verifying provenance of `fpdf2` releases](https://py-pdf.github.io/fpdf2/#verifying-provenance)
27
27
* documentation on [`fpdf2` internals](https://py-pdf.github.io/fpdf2/Internals.html)
28
28
* support for adding TrueType fonts that are missing the `.notdef` glyph - [issue #1161](https://github.com/py-pdf/fpdf2/issues/1161)
29
+
* new optional `reset_page_indices` parameter for [`insert_toc_placeholder()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.insert_toc_placeholder)
29
30
### Fixed
30
31
*[`FPDF.write_html()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html): Fixed rendering of content following `<a>` tags; now correctly resets emphasis style post `</a>` tag: hyperlink styling contained within the tag authority. - [Issue #1311](https://github.com/py-pdf/fpdf2/issues/1311)
Copy file name to clipboardexpand all lines: docs/Development.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -212,8 +212,9 @@ Ask maintainers through comments if some errors in the pipeline seem obscure to
212
212
[typos](https://github.com/crate-ci/typos) is a handy CLI tool to detect & auto-fix [typos](https://en.wikipedia.org/wiki/Typographical_error) in source files.
213
213
Installation is relatively straightforward ([read the docs](https://github.com/crate-ci/typos?tab=readme-ov-file#install)).
214
214
215
-
This tool is invoked in our CI pipeline.
215
+
This tool is invoked in the [pre-commit hooks](#pre-commit-hook) and in our CI pipeline.
216
216
If it fails, you should either:
217
+
217
218
* auto-fix the errors detected by invoking `typos --write-changes`
Copy file name to clipboardexpand all lines: docs/PageLabels.md
+2
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ pdf.set_page_label(
78
78
79
79
If you need to get the current page label, for example, to display it in a header or footer, you can use the `get_page_label()` method.
80
80
81
+
!!! warning "In case of a [table of contents](DocumentOutlineAndTableOfContents.md) spanning **more than one page**, the page number returned by `get_page_label()` will be **incorrect**.<br>_cf._[GitHub issue #1343](https://github.com/py-pdf/fpdf2/issues/1343)"
0 commit comments