Skip to content

chore(deps): bump pypdfium2 from 4.30.0 to 5.7.0#53

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/pypdfium2-5.7.0
Closed

chore(deps): bump pypdfium2 from 4.30.0 to 5.7.0#53
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/pypdfium2-5.7.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 13, 2026

Bumps pypdfium2 from 4.30.0 to 5.7.0.

Release notes

Sourced from pypdfium2's releases.

5.7.0

Changes (Release 5.7.0)

Summary (pypdfium2)

  • PdfDocument: When encoding input filepath to UTF-8, use the surrogateescape error handler (except on Windows). This fixes loading some garbled filenames, where a default .encode("utf-8") call would raise UnicodeEncodeError. Thanks to Filipe Litaiff for the report.
  • Simplified output string handling. Access buffer directly instead of buffer.raw. This might be more efficient.
  • The CLI has moved from pypdfium2._cli to pypdfium2_cli, i.e. an own submodule. pypdfium2.__main__ and python3 -m pypdfium2 are deprecated. Use pypdfium2_cli.__main__ and python3 -m pypdfium2_cli or the pypdfium2 entrypoint instead. This has been necessary since a module's __main__.py implies its __init__.py, which gives us no chance to prepare before library init if __main__.py lives in the pypdfium2 module itself.
  • Added new helper PdfSysfontBase. Wraps FPDF_SYSFONTINFO and related APIs. Callers can subclass from PdfSysfontBase to inspect or alter the way PDFium uses system fonts. This is a first step towards implementing a warning mechanism for missing system fonts or substitution. Thanks to scyyh11 for related proposals, and especially a hint on passing the right pointer in callbacks.
  • Added PdfiumWarning (subclass of Warning). A PdfiumWarning is now issued on XFA forms load failure, with programmatic error code info, rather than just a log message.
  • Added new submodule stub pypdfium2_cfg, which can be imported before pypdfium2 for init-time configuration. The DEBUG_AUTOCLOSE setting has been moved to this module. In the future, pypdfium2_cfg may be extended to give callers control over how pypdfium2 initializes PDFium (e.g. custom font paths).
  • Split off pypdfium2_raw/version.py from pypdfium2/version.py, so that PDFIUM_INFO is now available from within pypdfium2_raw. This has been necessary to implement a target-specific workaround (see below).
  • build_native.py: When GCC is used, we now declare a custom_toolchain, with environment passthrough.
    • First, this avoids inconsistency across different platforms in pdfium's build config, with some expecting just gcc and others an arch-prefixed variant. This makes build_native.py more likely to work out of the box, relieving callers from the necessity to create symlinks, including our internal cibuildwheel callers.
    • Second, this allows you to use a different version of GCC, or in fact any other compatible compiler, including clang, by setting CC, CXX and TOOLPREFIX. This makes --clang-as-gcc more straightforward to implement.
    • Also, extra CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS are now honored in this build mode.
  • Basic FreeBSD CI added (powered by cross-platform-actions), testing installation with libreoffice-pdfium.
    • On (Free)BSD with libreoffice-pdfium, pre-load implicit dependency libraries with mode=RTLD_GLOBAL to fix library load.

Commits between 5.6.0 and 5.7.0 (latest commit first):

  • f2a5380 [autorelease main] update 5.7.0
  • 77f58a1 Simplify sysfontinfo docs
  • 27c3a63 Align doc param name with actual param name
  • e3cc95c changelog: break some lines
  • 3aefaa0 Reland "Try to give GH API request a token"
  • 46795ee Revert "Try to give GH API request a token"
  • 47dffe8 Try to fix macOS and python < 3.8
  • de6a0d7 Try to give GH API request a token
  • 3ca4b06 Satisfy check-wheel-contents
  • 3d8423b Fix a typo that codespell didn't catch
  • edaf6ab FPDF_SYSFONTINFO wrapper + other progress (#417)
  • c085743 Move minitest script to utils/
  • 640e3b0 minitest: register exit handler only after successful library init
  • b85072a build(deps): bump extractions/setup-just from 3 to 4
  • 0bec727 Bump cibuildwheel to v3.4.1

... (truncated)

Commits
  • f2a5380 [autorelease main] update 5.7.0
  • 77f58a1 Simplify sysfontinfo docs
  • 27c3a63 Align doc param name with actual param name
  • e3cc95c changelog: break some lines
  • 3aefaa0 Reland "Try to give GH API request a token"
  • 46795ee Revert "Try to give GH API request a token"
  • 47dffe8 Try to fix macOS and python < 3.8
  • de6a0d7 Try to give GH API request a token
  • 3ca4b06 Satisfy check-wheel-contents
  • 3d8423b Fix a typo that codespell didn't catch
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pypdfium2](https://github.com/pypdfium2-team/pypdfium2) from 4.30.0 to 5.7.0.
- [Release notes](https://github.com/pypdfium2-team/pypdfium2/releases)
- [Commits](pypdfium2-team/pypdfium2@4.30.0...5.7.0)

---
updated-dependencies:
- dependency-name: pypdfium2
  dependency-version: 5.7.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Apr 13, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 27, 2026

Superseded by #81.

@dependabot dependabot Bot closed this Apr 27, 2026
@dependabot dependabot Bot deleted the dependabot/pip/pypdfium2-5.7.0 branch April 27, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants