Skip to content

Commit 8980e64

Browse files
committed
[autorelease main] update 5.7.1
1 parent 6f9d5d4 commit 8980e64

4 files changed

Lines changed: 19 additions & 14 deletions

File tree

autorelease/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"beta": false,
33
"major": false,
4-
"humble": true
4+
"humble": null
55
}

autorelease/record.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"tag": "5.7.0",
3-
"pdfium": 7776,
2+
"tag": "5.7.1",
3+
"pdfium": 7802,
44
"post_pdfium": null
55
}

docs/devel/changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
# Changelog
88

99

10+
## 5.7.1 (2026-04-20)
11+
12+
- Updated pdfium-binaries from `7776` to `7802`. Native and toolchained sourcebuild use pdfium `7191`.
13+
- The pdfium update fixes a regression in `FPDFText_GetLooseCharBox()` / `PdfTextPage.get_charbox(i, loose=True)` results introduced in the previous release.
14+
(Since conda pdfium-binaries are updated only once a month, this release downgrades to pdfium `7713` on conda)
15+
- Fixed an oversight in the CLI that caused `pypdfium2.__init__` to run before preparation after all. This had regressed shortly before the previous release.
16+
`DEBUG_AUTOCLOSE=1 pypdfium2 -h` should now show `Initialize PDFium` at first.
17+
- Changed output string handling once more, as even slicing the buffer directly still implies a copy – so let's use `memoryview` and `codecs.decode()` instead.
18+
Also, we now create buffers of the expected type directly to avoid casts, and convert number of bytes to units via ceil division where needed.
19+
Updated the Readme's raw API examples accordingly.
20+
- `PdfTextPage.get_text_bounded()` no longer unconditionally calls `page.get_bbox()` each time. Instead, call it only if needed, when at least one of the boundary values is None.
21+
If all bounds are given, skip the call. This eliminates extra overhead when `get_text_bounded()` is called many times on given rectangles, like from `PdfTextPage.get_rect()`. Though the API probably is not meant to be used this way.
22+
Consider `PdfPage.get_objects(filter=(FPDF_PAGEOBJ_TEXT,))` and `textobj.extract()` as a possible alternative.
23+
- Added `PdfFont.is_embedded` property.
24+
25+
1026
## 5.7.0 (2026-04-08)
1127

1228
- Updated pdfium-binaries from `7713` to `7776`. Native and toolchained sourcebuild use pdfium `7191`.

docs/devel/changelog_staging.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,3 @@
44
<!-- List character: dash (-) -->
55

66
# Changelog for next release
7-
- The pdfium update fixes a regression in `FPDFText_GetLooseCharBox()` / `PdfTextPage.get_charbox(i, loose=True)` results introduced in the previous release.
8-
(Since conda pdfium-binaries are updated only once a month, this release downgrades to pdfium `7713` on conda)
9-
- Fixed an oversight in the CLI that caused `pypdfium2.__init__` to run before preparation after all. This had regressed shortly before the previous release.
10-
`DEBUG_AUTOCLOSE=1 pypdfium2 -h` should now show `Initialize PDFium` at first.
11-
- Changed output string handling once more, as even slicing the buffer directly still implies a copy – so let's use `memoryview` and `codecs.decode()` instead.
12-
Also, we now create buffers of the expected type directly to avoid casts, and convert number of bytes to units via ceil division where needed.
13-
Updated the Readme's raw API examples accordingly.
14-
- `PdfTextPage.get_text_bounded()` no longer unconditionally calls `page.get_bbox()` each time. Instead, call it only if needed, when at least one of the boundary values is None.
15-
If all bounds are given, skip the call. This eliminates extra overhead when `get_text_bounded()` is called many times on given rectangles, like from `PdfTextPage.get_rect()`. Though the API probably is not meant to be used this way.
16-
Consider `PdfPage.get_objects(filter=(FPDF_PAGEOBJ_TEXT,))` and `textobj.extract()` as a possible alternative.
17-
- Added `PdfFont.is_embedded` property.

0 commit comments

Comments
 (0)