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
* Fixed the broken anchor links for Margins.md, PageFormatAndOrientation.md, TextColumns.md and TextRegion.md.
* Fixed a broken anchor link in Images.md.
* Added an entry about fixing broken anchor links to CHANGELOG.md.
* Replaced links that lead to other parts of the documentation instead of the API reference.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ This can also be enabled programmatically with `warnings.simplefilter('default',
39
39
* leading spaces on new lines inside `<pre>` and `<pre><code>` blocks are no longer dropped - _cf._[issue #1063](https://github.com/py-pdf/fpdf2/issues/1063)
40
40
*`FPDF.set_font()` can restore `current_font` when the selected font state diverged - _cf._[PR #1872](https://github.com/py-pdf/fpdf2/pull/1872)
41
41
* embed CID-keyed CFF fonts as raw CFF programs so browser PDF viewers render them correctly - _cf._[issue #1874](https://github.com/py-pdf/fpdf2/issues/1874)
42
+
* fixed broken links on documentation not directly leading to the API reference - _cf._[issue #1876](https://github.com/py-pdf/fpdf2/issues/1876)
42
43
### Changed
43
44
* skip byte-for-byte compressed data comparison when zlib-ng is detected, regardless of OS
When using [`FPDF.write_html`](HTML.md), a document outline is automatically generated, and a ToC can be added with the `<toc>` tag.
70
+
When using [`FPDF.write_html`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html), a document outline is automatically generated, and a ToC can be added with the `<toc>` tag.
71
71
72
72
To customize ToC styling, override the `render_toc` method in a subclass:
Copy file name to clipboardExpand all lines: docs/Images.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ _New in [:octicons-tag-24: 2.8.3](https://github.com/py-pdf/fpdf2/blob/master/CH
240
240
241
241
The dedicated method for adding output intent to a PDF is [`add_output_intent()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.add_output_intent).
242
242
243
-
You can optionally provide a [`PDFICCProfileObject`](https://py-pdf.github.io/fpdf2/fpdf/output.html#fpdf.output.PDFICCProfileObject) as `icc_profile`.
243
+
You can optionally provide a [`PDFICCProfileObject`](https://py-pdf.github.io/fpdf2/fpdf/output.html#fpdf.output.PDFICCProfile) as `icc_profile`.
Copy file name to clipboardExpand all lines: docs/Links.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ pdf.multi_cell(
36
36
pdf.output("hyperlink.pdf")
37
37
```
38
38
39
-
Links defined this way in Markdown can be styled by setting `FPDF` class attributes `MARKDOWN_LINK_COLOR` (default: `None`) & `MARKDOWN_LINK_UNDERLINE` (default: `True`).
39
+
Links defined this way in Markdown can be styled by setting `FPDF` class attributes `MARKDOWN_LINK_COLOR` (default: `None`) & `MARKDOWN_LINK_UNDERLINE` (default: `True`).
40
40
Links can also be styled by embedding them in markdown style markers (`**bold**, __italics__, --underlined--, ~~strikethrough~~`):
41
41
42
42
```python
@@ -79,7 +79,7 @@ pdf.output("hyperlink.pdf")
79
79
80
80
## Hyperlink with write_html ##
81
81
82
-
An alternative method using [`FPDF.write_html`](HTML.md):
82
+
An alternative method using [`FPDF.write_html`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html):
83
83
84
84
```python
85
85
from fpdf importFPDF
@@ -117,7 +117,7 @@ There are some situations where a user wants to create
117
117
an internal link to another page in the PDF document, but
118
118
the page number is not known at the time of link creation.
119
119
In this case, the link can be created using `pdf.add_link()`
120
-
as before, and then later re-reference to a specific page using
120
+
as before, and then later re-reference to a specific page using
121
121
`pdf.set_link()`. In this example our goal is to link to a
122
122
page that occurs after a section with a variable
123
123
amount of text, potentially occupying multiple pages:
@@ -161,7 +161,7 @@ Other methods can also insert internal links:
161
161
162
162
*[FPDF.multi_cell](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.multi_cell) using `link=`**or**`markdown=True` and this syntax: `[link text](page number)`
*[FPDF.write_html](HTML.md) using anchor tags: `<a href="page number">link text</a>`
164
+
*[FPDF.write_html](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html) using anchor tags: `<a href="page number">link text</a>`
165
165
166
166
The unit tests `test_internal_links()` in [test_links.py](https://github.com/py-pdf/fpdf2/blob/master/test/test_links.py) provides examples for all of those methods.
167
167
@@ -184,7 +184,7 @@ Other methods can also insert internal links:
184
184
185
185
*[FPDF.multi_cell](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.multi_cell) using `link=`**or**`markdown=True` and this syntax: `[link text](other_doc.pdf)`
*[FPDF.write_html](HTML.md) using anchor tags: `<a href="other_doc.pdf">link text</a>`
187
+
*[FPDF.write_html](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html) using anchor tags: `<a href="other_doc.pdf">link text</a>`
188
188
189
189
The unit test `test_link_to_other_document()` in [test_links.py](https://github.com/py-pdf/fpdf2/blob/master/test/test_links.py) provides examples for all of those methods.
Copy file name to clipboardExpand all lines: docs/Text.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ There are several ways in fpdf to add text to a PDF document, each of which come
14
14
15
15
## Flowable Text Regions
16
16
17
-
Text regions allow to insert flowing text into a predefined region on the page. It is possible to change the formatting and even the font within paragraphs, which will still be aligned as one text block.
18
-
The currently implemented type of text regions is [text_columns()](TextColumns.md), which defines one or several columns that can be filled sequentially or height-balanced.
17
+
Text regions allow to insert flowing text into a predefined region on the page. It is possible to change the formatting and even the font within paragraphs, which will still be aligned as one text block.
18
+
The currently implemented type of text regions is [text_columns()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.text_columns), which defines one or several columns that can be filled sequentially or height-balanced.
19
19
20
-
## Typography and Language Specific Concepts
20
+
## Typography and Language Specific Concepts
21
21
### Supported Features
22
22
With supporting Unicode fonts, `fpdf2` should handle the following text shaping features correctly. More details can be found in [TextShaping](TextShaping.md).
Copy file name to clipboardExpand all lines: docs/TextRegion.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Other types like Table cells, shaped regions and combinations are still in the d
15
15
## General Operation ##
16
16
Using the different region types and combination always follows the same pattern. The main difference to the normal `FPDF.write()` method is that all added text will first be buffered, and only gets rendered on the page when the context of the region is closed. This is necessary so that text can be aligned within the given boundaries even if its font, style, or size are arbitrarily varied along the way.
17
17
18
-
* Create the region instance with an `FPDF` method, , for example [text_columns()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.text_columns).
18
+
* Create the region instance with an `FPDF` method, , for example [text_columns()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.text_columns).
19
19
<!--
20
20
* future: (_If desired, add or subtract other shapes from it (with geometric regions)_).
0 commit comments