Skip to content

Commit

Permalink
[autorelease main] update 4.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed May 9, 2024
1 parent 1e9e100 commit 6bf53c4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
40 changes: 20 additions & 20 deletions autorelease/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions autorelease/record.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"pdfium": 6406,
"tag": "4.29.0"
"pdfium": 6462,
"tag": "4.30.0"
}
10 changes: 10 additions & 0 deletions docs/devel/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
5 changes: 0 additions & 5 deletions docs/devel/changelog_staging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@
<!-- List character: dash (-) -->

# 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.

0 comments on commit 6bf53c4

Please sign in to comment.