4.20.0
Changes (Release 4.20.0)
Summary (pypdfium2)
This release backports some key fixes/improvements from the development branch:
- [V8/XFA] Fixed XFA init. This issue was caused by a typo in a struct field. Thanks to Benoît Blanchon.
- [ctypesgen fork] Prevent setting nonexistent struct fields.
- [V8/XFA] Expose V8/XFA exclusive members in the bindings file by passing ctypesgen the pre-processor defines in question.
- Fixed some major non-API implementation issues with multipage rendering:
- Avoid full state data transfer and object re-initialization for each job. Instead, use a pool initializer and exploit global variables. This also makes bytes input tolerable for parallel rendering.
- In the CLI, use a custom converter to save directly in workers instead of serializing bitmaps to the main process.
- Set pdfium version fields to unknown for
PDFIUM_PLATFORM=none
(sdist). This prevents encoding a potentially incorrect version. Also improve CLI version print. - Fixed sourcebuild with system libraries.
- Fixed RTD build (
system_packages
option removal). - Attempt to fix automatic GH pages rebuild on release.
pypdfium2 commit log
Commits between 4.19.0
and 4.20.0
(latest commit first):
7361289
[autorelease] update changelog and version file76b51ad
readme: fix n_digits (closes #255)d4c19b3
[ctypesgen fork] prevent setting bad struct fieldsc837803
[BP] Fix RTD build (system_packages
opt deprecation/removal)1302e77
CLI: improve version print953f8e1
[Hotfix]PDFIUM_PLATFORM=none
: set pdfium version to unknowna1d00da
[Hotfix] make sure we have a digit version before casting99c8b7e
Merge pull request #253 from pypdfium2-team/backportsf35421b
[BP] changelog: remove wrong guess5fbb229
[BP] cli/render: move saving from main process into jobsfbab9b0
[BP]PdfDocument.render()
: Fix non-API implementation issues7e77b26
Clean up planned changesf145e5e
docs: fix myst warning suppression9055c6c
Prepare changelogb8f37b6
[BP] Fix sourcebuild with system librariesf66c08f
[BP]init_forms()
: Fix XFA init79cb619
[BP] Expose V8/XFA specific members if applicablef9d5f10
GH pages: don't run on every commit, build for releases onlydf47a9c
[BP] Automatic GH pages rebuild on release