diff --git a/autorelease/bindings.py b/autorelease/bindings.py index b4c591c09..0b610feab 100644 --- a/autorelease/bindings.py +++ b/autorelease/bindings.py @@ -3736,103 +3736,103 @@ class struct_FPDF_CharsetFontMap_ (Structure): FPDFText_GetCharIndexAtPos.argtypes = [FPDF_TEXTPAGE, c_double, c_double, c_double, c_double] FPDFText_GetCharIndexAtPos.restype = c_int -# ./fpdf_text.h: 394 +# ./fpdf_text.h: 393 if hasattr(_libs['pdfium'], 'FPDFText_GetText'): FPDFText_GetText = _libs['pdfium']['FPDFText_GetText'] FPDFText_GetText.argtypes = [FPDF_TEXTPAGE, c_int, c_int, POINTER(c_ushort)] FPDFText_GetText.restype = c_int -# ./fpdf_text.h: 417 +# ./fpdf_text.h: 416 if hasattr(_libs['pdfium'], 'FPDFText_CountRects'): FPDFText_CountRects = _libs['pdfium']['FPDFText_CountRects'] FPDFText_CountRects.argtypes = [FPDF_TEXTPAGE, c_int, c_int] FPDFText_CountRects.restype = c_int -# ./fpdf_text.h: 443 +# ./fpdf_text.h: 442 if hasattr(_libs['pdfium'], 'FPDFText_GetRect'): FPDFText_GetRect = _libs['pdfium']['FPDFText_GetRect'] FPDFText_GetRect.argtypes = [FPDF_TEXTPAGE, c_int, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double)] FPDFText_GetRect.restype = FPDF_BOOL -# ./fpdf_text.h: 474 +# ./fpdf_text.h: 473 if hasattr(_libs['pdfium'], 'FPDFText_GetBoundedText'): FPDFText_GetBoundedText = _libs['pdfium']['FPDFText_GetBoundedText'] FPDFText_GetBoundedText.argtypes = [FPDF_TEXTPAGE, c_double, c_double, c_double, c_double, POINTER(c_ushort), c_int] FPDFText_GetBoundedText.restype = c_int -# ./fpdf_text.h: 504 +# ./fpdf_text.h: 503 if hasattr(_libs['pdfium'], 'FPDFText_FindStart'): FPDFText_FindStart = _libs['pdfium']['FPDFText_FindStart'] FPDFText_FindStart.argtypes = [FPDF_TEXTPAGE, FPDF_WIDESTRING, c_ulong, c_int] FPDFText_FindStart.restype = FPDF_SCHHANDLE -# ./fpdf_text.h: 517 +# ./fpdf_text.h: 516 if hasattr(_libs['pdfium'], 'FPDFText_FindNext'): FPDFText_FindNext = _libs['pdfium']['FPDFText_FindNext'] FPDFText_FindNext.argtypes = [FPDF_SCHHANDLE] FPDFText_FindNext.restype = FPDF_BOOL -# ./fpdf_text.h: 527 +# ./fpdf_text.h: 526 if hasattr(_libs['pdfium'], 'FPDFText_FindPrev'): FPDFText_FindPrev = _libs['pdfium']['FPDFText_FindPrev'] FPDFText_FindPrev.argtypes = [FPDF_SCHHANDLE] FPDFText_FindPrev.restype = FPDF_BOOL -# ./fpdf_text.h: 537 +# ./fpdf_text.h: 536 if hasattr(_libs['pdfium'], 'FPDFText_GetSchResultIndex'): FPDFText_GetSchResultIndex = _libs['pdfium']['FPDFText_GetSchResultIndex'] FPDFText_GetSchResultIndex.argtypes = [FPDF_SCHHANDLE] FPDFText_GetSchResultIndex.restype = c_int -# ./fpdf_text.h: 547 +# ./fpdf_text.h: 546 if hasattr(_libs['pdfium'], 'FPDFText_GetSchCount'): FPDFText_GetSchCount = _libs['pdfium']['FPDFText_GetSchCount'] FPDFText_GetSchCount.argtypes = [FPDF_SCHHANDLE] FPDFText_GetSchCount.restype = c_int -# ./fpdf_text.h: 557 +# ./fpdf_text.h: 556 if hasattr(_libs['pdfium'], 'FPDFText_FindClose'): FPDFText_FindClose = _libs['pdfium']['FPDFText_FindClose'] FPDFText_FindClose.argtypes = [FPDF_SCHHANDLE] FPDFText_FindClose.restype = None -# ./fpdf_text.h: 579 +# ./fpdf_text.h: 578 if hasattr(_libs['pdfium'], 'FPDFLink_LoadWebLinks'): FPDFLink_LoadWebLinks = _libs['pdfium']['FPDFLink_LoadWebLinks'] FPDFLink_LoadWebLinks.argtypes = [FPDF_TEXTPAGE] FPDFLink_LoadWebLinks.restype = FPDF_PAGELINK -# ./fpdf_text.h: 588 +# ./fpdf_text.h: 587 if hasattr(_libs['pdfium'], 'FPDFLink_CountWebLinks'): FPDFLink_CountWebLinks = _libs['pdfium']['FPDFLink_CountWebLinks'] FPDFLink_CountWebLinks.argtypes = [FPDF_PAGELINK] FPDFLink_CountWebLinks.restype = c_int -# ./fpdf_text.h: 609 +# ./fpdf_text.h: 608 if hasattr(_libs['pdfium'], 'FPDFLink_GetURL'): FPDFLink_GetURL = _libs['pdfium']['FPDFLink_GetURL'] FPDFLink_GetURL.argtypes = [FPDF_PAGELINK, c_int, POINTER(c_ushort), c_int] FPDFLink_GetURL.restype = c_int -# ./fpdf_text.h: 623 +# ./fpdf_text.h: 622 if hasattr(_libs['pdfium'], 'FPDFLink_CountRects'): FPDFLink_CountRects = _libs['pdfium']['FPDFLink_CountRects'] FPDFLink_CountRects.argtypes = [FPDF_PAGELINK, c_int] FPDFLink_CountRects.restype = c_int -# ./fpdf_text.h: 646 +# ./fpdf_text.h: 645 if hasattr(_libs['pdfium'], 'FPDFLink_GetRect'): FPDFLink_GetRect = _libs['pdfium']['FPDFLink_GetRect'] FPDFLink_GetRect.argtypes = [FPDF_PAGELINK, c_int, c_int, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double)] FPDFLink_GetRect.restype = FPDF_BOOL -# ./fpdf_text.h: 669 +# ./fpdf_text.h: 668 if hasattr(_libs['pdfium'], 'FPDFLink_GetTextRange'): FPDFLink_GetTextRange = _libs['pdfium']['FPDFLink_GetTextRange'] FPDFLink_GetTextRange.argtypes = [FPDF_PAGELINK, c_int, POINTER(c_int), POINTER(c_int)] FPDFLink_GetTextRange.restype = FPDF_BOOL -# ./fpdf_text.h: 681 +# ./fpdf_text.h: 680 if hasattr(_libs['pdfium'], 'FPDFLink_CloseWebLinks'): FPDFLink_CloseWebLinks = _libs['pdfium']['FPDFLink_CloseWebLinks'] FPDFLink_CloseWebLinks.argtypes = [FPDF_PAGELINK] @@ -4834,13 +4834,13 @@ def FPDF_GetAValue(argb): # ./fpdf_sysfontinfo.h: 37 FXFONT_FW_BOLD = 700 -# ./fpdf_text.h: 485 +# ./fpdf_text.h: 484 FPDF_MATCHCASE = 0x00000001 -# ./fpdf_text.h: 487 +# ./fpdf_text.h: 486 FPDF_MATCHWHOLEWORD = 0x00000002 -# ./fpdf_text.h: 489 +# ./fpdf_text.h: 488 FPDF_CONSECUTIVE = 0x00000004 # ./fpdf_edit.h: 93 diff --git a/autorelease/record.json b/autorelease/record.json index 2f7109306..1b7887b88 100644 --- a/autorelease/record.json +++ b/autorelease/record.json @@ -1,4 +1,4 @@ { - "pdfium": 6406, - "tag": "4.29.0" + "pdfium": 6462, + "tag": "4.30.0" } \ No newline at end of file diff --git a/docs/devel/changelog.md b/docs/devel/changelog.md index 7922eebaf..97735681b 100644 --- a/docs/devel/changelog.md +++ b/docs/devel/changelog.md @@ -7,6 +7,16 @@ # Changelog +## 4.30.0 (2024-05-09) + +- Updated PDFium from `6406` to `6462`. +*Backported bug fixes / corrections from current development branch to preferably leave v4 in a clean state.* +- 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. +- XFA / rendering CLI: Fixed incorrect recognition of document length. `pdf.init_forms()` must be called before `len(pdf)`. +- Made `get_text_range()` allocation adapt to pdfium version, as `FPDFText_GetText()` has been reverted to UCS-2. (See v4.28 changelog for background.) +- 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. + + ## 4.29.0 (2024-04-10) - Updated PDFium from `6337` to `6406`. diff --git a/docs/devel/changelog_staging.md b/docs/devel/changelog_staging.md index 8c9ad4f00..e41edd85a 100644 --- a/docs/devel/changelog_staging.md +++ b/docs/devel/changelog_staging.md @@ -4,8 +4,3 @@ # Changelog for next release -*Backported bug fixes / corrections from current development branch to preferably leave v4 in a clean state.* -- 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. -- XFA / rendering CLI: Fixed incorrect recognition of document length. `pdf.init_forms()` must be called before `len(pdf)`. -- Made `get_text_range()` allocation adapt to pdfium version, as `FPDFText_GetText()` has been reverted to UCS-2. (See v4.28 changelog for background.) -- 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.