Skip to content

Commit 6bf53c4

Browse files
committed
[autorelease main] update 4.30.0
1 parent 1e9e100 commit 6bf53c4

4 files changed

Lines changed: 32 additions & 27 deletions

File tree

autorelease/bindings.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3736,103 +3736,103 @@ class struct_FPDF_CharsetFontMap_ (Structure):
37363736
FPDFText_GetCharIndexAtPos.argtypes = [FPDF_TEXTPAGE, c_double, c_double, c_double, c_double]
37373737
FPDFText_GetCharIndexAtPos.restype = c_int
37383738

3739-
# ./fpdf_text.h: 394
3739+
# ./fpdf_text.h: 393
37403740
if hasattr(_libs['pdfium'], 'FPDFText_GetText'):
37413741
FPDFText_GetText = _libs['pdfium']['FPDFText_GetText']
37423742
FPDFText_GetText.argtypes = [FPDF_TEXTPAGE, c_int, c_int, POINTER(c_ushort)]
37433743
FPDFText_GetText.restype = c_int
37443744

3745-
# ./fpdf_text.h: 417
3745+
# ./fpdf_text.h: 416
37463746
if hasattr(_libs['pdfium'], 'FPDFText_CountRects'):
37473747
FPDFText_CountRects = _libs['pdfium']['FPDFText_CountRects']
37483748
FPDFText_CountRects.argtypes = [FPDF_TEXTPAGE, c_int, c_int]
37493749
FPDFText_CountRects.restype = c_int
37503750

3751-
# ./fpdf_text.h: 443
3751+
# ./fpdf_text.h: 442
37523752
if hasattr(_libs['pdfium'], 'FPDFText_GetRect'):
37533753
FPDFText_GetRect = _libs['pdfium']['FPDFText_GetRect']
37543754
FPDFText_GetRect.argtypes = [FPDF_TEXTPAGE, c_int, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double)]
37553755
FPDFText_GetRect.restype = FPDF_BOOL
37563756

3757-
# ./fpdf_text.h: 474
3757+
# ./fpdf_text.h: 473
37583758
if hasattr(_libs['pdfium'], 'FPDFText_GetBoundedText'):
37593759
FPDFText_GetBoundedText = _libs['pdfium']['FPDFText_GetBoundedText']
37603760
FPDFText_GetBoundedText.argtypes = [FPDF_TEXTPAGE, c_double, c_double, c_double, c_double, POINTER(c_ushort), c_int]
37613761
FPDFText_GetBoundedText.restype = c_int
37623762

3763-
# ./fpdf_text.h: 504
3763+
# ./fpdf_text.h: 503
37643764
if hasattr(_libs['pdfium'], 'FPDFText_FindStart'):
37653765
FPDFText_FindStart = _libs['pdfium']['FPDFText_FindStart']
37663766
FPDFText_FindStart.argtypes = [FPDF_TEXTPAGE, FPDF_WIDESTRING, c_ulong, c_int]
37673767
FPDFText_FindStart.restype = FPDF_SCHHANDLE
37683768

3769-
# ./fpdf_text.h: 517
3769+
# ./fpdf_text.h: 516
37703770
if hasattr(_libs['pdfium'], 'FPDFText_FindNext'):
37713771
FPDFText_FindNext = _libs['pdfium']['FPDFText_FindNext']
37723772
FPDFText_FindNext.argtypes = [FPDF_SCHHANDLE]
37733773
FPDFText_FindNext.restype = FPDF_BOOL
37743774

3775-
# ./fpdf_text.h: 527
3775+
# ./fpdf_text.h: 526
37763776
if hasattr(_libs['pdfium'], 'FPDFText_FindPrev'):
37773777
FPDFText_FindPrev = _libs['pdfium']['FPDFText_FindPrev']
37783778
FPDFText_FindPrev.argtypes = [FPDF_SCHHANDLE]
37793779
FPDFText_FindPrev.restype = FPDF_BOOL
37803780

3781-
# ./fpdf_text.h: 537
3781+
# ./fpdf_text.h: 536
37823782
if hasattr(_libs['pdfium'], 'FPDFText_GetSchResultIndex'):
37833783
FPDFText_GetSchResultIndex = _libs['pdfium']['FPDFText_GetSchResultIndex']
37843784
FPDFText_GetSchResultIndex.argtypes = [FPDF_SCHHANDLE]
37853785
FPDFText_GetSchResultIndex.restype = c_int
37863786

3787-
# ./fpdf_text.h: 547
3787+
# ./fpdf_text.h: 546
37883788
if hasattr(_libs['pdfium'], 'FPDFText_GetSchCount'):
37893789
FPDFText_GetSchCount = _libs['pdfium']['FPDFText_GetSchCount']
37903790
FPDFText_GetSchCount.argtypes = [FPDF_SCHHANDLE]
37913791
FPDFText_GetSchCount.restype = c_int
37923792

3793-
# ./fpdf_text.h: 557
3793+
# ./fpdf_text.h: 556
37943794
if hasattr(_libs['pdfium'], 'FPDFText_FindClose'):
37953795
FPDFText_FindClose = _libs['pdfium']['FPDFText_FindClose']
37963796
FPDFText_FindClose.argtypes = [FPDF_SCHHANDLE]
37973797
FPDFText_FindClose.restype = None
37983798

3799-
# ./fpdf_text.h: 579
3799+
# ./fpdf_text.h: 578
38003800
if hasattr(_libs['pdfium'], 'FPDFLink_LoadWebLinks'):
38013801
FPDFLink_LoadWebLinks = _libs['pdfium']['FPDFLink_LoadWebLinks']
38023802
FPDFLink_LoadWebLinks.argtypes = [FPDF_TEXTPAGE]
38033803
FPDFLink_LoadWebLinks.restype = FPDF_PAGELINK
38043804

3805-
# ./fpdf_text.h: 588
3805+
# ./fpdf_text.h: 587
38063806
if hasattr(_libs['pdfium'], 'FPDFLink_CountWebLinks'):
38073807
FPDFLink_CountWebLinks = _libs['pdfium']['FPDFLink_CountWebLinks']
38083808
FPDFLink_CountWebLinks.argtypes = [FPDF_PAGELINK]
38093809
FPDFLink_CountWebLinks.restype = c_int
38103810

3811-
# ./fpdf_text.h: 609
3811+
# ./fpdf_text.h: 608
38123812
if hasattr(_libs['pdfium'], 'FPDFLink_GetURL'):
38133813
FPDFLink_GetURL = _libs['pdfium']['FPDFLink_GetURL']
38143814
FPDFLink_GetURL.argtypes = [FPDF_PAGELINK, c_int, POINTER(c_ushort), c_int]
38153815
FPDFLink_GetURL.restype = c_int
38163816

3817-
# ./fpdf_text.h: 623
3817+
# ./fpdf_text.h: 622
38183818
if hasattr(_libs['pdfium'], 'FPDFLink_CountRects'):
38193819
FPDFLink_CountRects = _libs['pdfium']['FPDFLink_CountRects']
38203820
FPDFLink_CountRects.argtypes = [FPDF_PAGELINK, c_int]
38213821
FPDFLink_CountRects.restype = c_int
38223822

3823-
# ./fpdf_text.h: 646
3823+
# ./fpdf_text.h: 645
38243824
if hasattr(_libs['pdfium'], 'FPDFLink_GetRect'):
38253825
FPDFLink_GetRect = _libs['pdfium']['FPDFLink_GetRect']
38263826
FPDFLink_GetRect.argtypes = [FPDF_PAGELINK, c_int, c_int, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double)]
38273827
FPDFLink_GetRect.restype = FPDF_BOOL
38283828

3829-
# ./fpdf_text.h: 669
3829+
# ./fpdf_text.h: 668
38303830
if hasattr(_libs['pdfium'], 'FPDFLink_GetTextRange'):
38313831
FPDFLink_GetTextRange = _libs['pdfium']['FPDFLink_GetTextRange']
38323832
FPDFLink_GetTextRange.argtypes = [FPDF_PAGELINK, c_int, POINTER(c_int), POINTER(c_int)]
38333833
FPDFLink_GetTextRange.restype = FPDF_BOOL
38343834

3835-
# ./fpdf_text.h: 681
3835+
# ./fpdf_text.h: 680
38363836
if hasattr(_libs['pdfium'], 'FPDFLink_CloseWebLinks'):
38373837
FPDFLink_CloseWebLinks = _libs['pdfium']['FPDFLink_CloseWebLinks']
38383838
FPDFLink_CloseWebLinks.argtypes = [FPDF_PAGELINK]
@@ -4834,13 +4834,13 @@ def FPDF_GetAValue(argb):
48344834
# ./fpdf_sysfontinfo.h: 37
48354835
FXFONT_FW_BOLD = 700
48364836

4837-
# ./fpdf_text.h: 485
4837+
# ./fpdf_text.h: 484
48384838
FPDF_MATCHCASE = 0x00000001
48394839

4840-
# ./fpdf_text.h: 487
4840+
# ./fpdf_text.h: 486
48414841
FPDF_MATCHWHOLEWORD = 0x00000002
48424842

4843-
# ./fpdf_text.h: 489
4843+
# ./fpdf_text.h: 488
48444844
FPDF_CONSECUTIVE = 0x00000004
48454845

48464846
# ./fpdf_edit.h: 93

autorelease/record.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"pdfium": 6406,
3-
"tag": "4.29.0"
2+
"pdfium": 6462,
3+
"tag": "4.30.0"
44
}

docs/devel/changelog.md

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

99

10+
## 4.30.0 (2024-05-09)
11+
12+
- Updated PDFium from `6406` to `6462`.
13+
*Backported bug fixes / corrections from current development branch to preferably leave v4 in a clean state.*
14+
- Fixed blunder in `PdfImage.extract()` producing an incorrect output path for prefixes containing a dot. In the `extract-images` CLI, this caused all output images of a type to be written to the same path for a document containing a non-extension dot in the filename.
15+
- XFA / rendering CLI: Fixed incorrect recognition of document length. `pdf.init_forms()` must be called before `len(pdf)`.
16+
- Made `get_text_range()` allocation adapt to pdfium version, as `FPDFText_GetText()` has been reverted to UCS-2. (See v4.28 changelog for background.)
17+
- Updated workflows to include both `macos-13` and `macos-14` in test matrices because v13 is Intel and v14 ARM64 on GH actions. Removed python 3.7 testing because not supported anymore on `macos-14` runners.
18+
19+
1020
## 4.29.0 (2024-04-10)
1121

1222
- Updated PDFium from `6337` to `6406`.

docs/devel/changelog_staging.md

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

66
# Changelog for next release
7-
*Backported bug fixes / corrections from current development branch to preferably leave v4 in a clean state.*
8-
- Fixed blunder in `PdfImage.extract()` producing an incorrect output path for prefixes containing a dot. In the `extract-images` CLI, this caused all output images of a type to be written to the same path for a document containing a non-extension dot in the filename.
9-
- XFA / rendering CLI: Fixed incorrect recognition of document length. `pdf.init_forms()` must be called before `len(pdf)`.
10-
- Made `get_text_range()` allocation adapt to pdfium version, as `FPDFText_GetText()` has been reverted to UCS-2. (See v4.28 changelog for background.)
11-
- Updated workflows to include both `macos-13` and `macos-14` in test matrices because v13 is Intel and v14 ARM64 on GH actions. Removed python 3.7 testing because not supported anymore on `macos-14` runners.

0 commit comments

Comments
 (0)