pypdfium2 breaking changes
Updated December 4, 2026
On this page
Latest version 5.15.2, released November 9, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 4.0.0 to 5.0.0: 43 breaking changes in 3 versions.
- From 3.0.0 to 5.0.0: 1,213 breaking changes in 5 versions.
pypdfium2 5.0.0 breaking changes
- Signature changed
pypdfium2.PdfBitmap.new_native
Was @classmethod def new_native(cls, width, height, format, rev_byteorder=False, buffer=None); now @classmethod def new_native(cls, width, height, format, rev_byteorder=False, buffer=None, stride=None). pypi.org - Signature changed
pypdfium2.PdfDocument.save
Was def save(self, dest, version=None, flags=pdfium_c.FPDF_NO_INCREMENTAL); now def save(self, dest, version=None, flags=0). pypi.org - Signature changed
pypdfium2.PdfFormEnv.__init__
Was def __init__(self, raw, config, pdf); now def __init__(self, raw, pdf, config). pypi.org - Signature changed
pypdfium2.PdfImage.get_bitmap
Was def get_bitmap(self, render=False); now def get_bitmap(self, render=False, scale_to_original=True). pypi.org - Signature changed
pypdfium2.PdfObject.__init__
Was def __init__(self, raw, page=None, pdf=None, level=0); now def __init__(self, raw, page=None, pdf=None, container=None, level=0). pypi.org - Signature changed
pypdfium2.PdfPage.get_objects
Was def get_objects(self, filter=None, max_depth=2, form=None, level=0); now def get_objects(self, filter=None, max_depth=15, form=None, level=0). pypi.org - Signature changed
pypdfium2.PdfTextPage.get_text_range
Was def get_text_range(self, index=0, count=-1, errors='ignore', force_this=False); now def get_text_range(self, index=0, count=-1, errors='ignore'). pypi.org - Signature changed
pypdfium2.PdfTextPage.search
Was def search(self, text, index=0, match_case=False, match_whole_word=False, consecutive=False); now def search(self, text, index=0, match_case=False, match_whole_word=False, consecutive=False, flags=0). pypi.org
pypdfium2 5.0.0b2 breaking changes
- Removed
The bash ./run file is replaced by a justfile; use just to run tasks. github.com - Removed
Drops .reuse/dep5 license file in favor of REUSE.toml in pypdfium2 5.0.0b2 github.com - Removed
PdfBitmap.get_info
Take the bitmap info directly from the PdfBitmap object instead of calling get_info(). github.com - Removed
PdfBitmapInfo
Read bitmap properties from the PdfBitmap object directly. github.com - Removed
PdfDocument.get_toc
get_toc() now yields PdfBookmark and PdfDest objects instead of PdfOutlineItem, and the signed count is given as-is rather than n_kids and is_closed. github.com - Removed
PdfDocument.render
PdfDocument.render() is gone. Use PdfPage.render() with a loop or process pool instead. github.com - Removed
PdfImage.extract
Drop the fb_render option; use get_bitmap(render=True) to get the rendered bitmap. github.com - Removed
V_BUILDNAME
Use PDFIUM_INFO instead. github.com - Removed
V_LIBPDFIUM
Use PDFIUM_INFO instead. github.com - Removed
V_LIBPDFIUM_FULL
Use PDFIUM_INFO instead. github.com
And 14 more in this version. Sign up to see every change
pypdfium2 5.0.0b1 breaking changes
- Removed
Code relying on the legacy version flags must stop using them. github.com - Removed
PdfBitmap.get_info
Take the info from the PdfBitmap object directly instead of calling get_info(). github.com - Removed
PdfBitmapInfo
Take the info from the PdfBitmap object directly instead of using PdfBitmapInfo. github.com - Removed
PdfDocument.render
Use PdfPage.render() with a loop or process pool instead of PdfDocument.render(). github.com - Removed
PdfImage.extract
Use get_bitmap(render=True) to get the rendered bitmap instead of fb_render. github.com - Removed
PdfOutlineItem
Use the PdfBookmark and PdfDest wrapper classes returned by get_toc() instead of PdfOutlineItem. github.com - Renamed
PdfImage.get_size
Call get_px_size() instead of get_size(). github.com - Renamed
PdfObject.get_pos
Call get_bounds() instead of get_pos(). github.com - Behavior changed
get_text_range
Default calls now use UCS-2 text; call get_text_bounded() explicitly for full Unicode support. github.com - Behavior changed
PdfBitmap.to_numpy
Single-channel bitmaps now produce a 2d shape instead of wrapping each pixel value in a list. github.com
And 1 more in this version. Sign up to see every change
pypdfium2 4.0.0 breaking changes
- Removed
pypdfium2.__main__.main
pypdfium2.__main__.main was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapConv
pypdfium2.BitmapConv was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapConvAliases
pypdfium2.BitmapConvAliases was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapConvBase
pypdfium2.BitmapConvBase was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapStrReverseToRegular
pypdfium2.BitmapStrReverseToRegular was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapTypeToNChannels
pypdfium2.BitmapTypeToNChannels was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapTypeToStr
pypdfium2.BitmapTypeToStr was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.BitmapTypeToStrReverse
pypdfium2.BitmapTypeToStrReverse was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.c_double
pypdfium2.c_double was removed in pypdfium2 4.0.0 pypi.org - Removed
pypdfium2.c_float
pypdfium2.c_float was removed in pypdfium2 4.0.0 pypi.org
And 1,157 more in this version. Sign up to see every change
pypdfium2 4.0.0b1 breaking changes
- Behavior changed
Many existing features changed in the support model rewrite; users must read the updated documentation and migrate their code. github.com - Behavior changed
Raw API bindings no longer encode strings implicitly; callers must encode strings themselves. github.com - Behavior changed
pypdfium2.raw
The raw API is now only available under pypdfium2.raw. Code importing raw bindings from the top-level package must be updated. github.com
pypdfium2 3.0.0 breaking changes
- Removed
BitmapDataHolder
BitmapDataHolder has been removed; render_base returns a ctypes array directly. github.com - Removed
no_antialias
Use the separate options no_smoothtext, no_smoothimage and no_smoothpath instead. github.com - Removed
PdfPage.count_objects
Use PdfPage.get_objects() or the raw PDFium API instead. github.com - Removed
PdfPageObject.get_type
Replace calls to get_type() with the type attribute. github.com - Renamed
$PYP_TARGET_PLATFORM
The setup variable was renamed to PDFIUM_BINARY, and its sdist value was renamed to none. github.com - Renamed
annotations
Rename the annotations rendering parameter to draw_annots. github.com - Renamed
colour
Rename colour to fill_colour; it now only accepts a list of 4 values, not 3 values or None. github.com - Behavior changed
Setup only checks system commands now; if opting out of build isolation, install setup dependencies beforehand. github.com - Behavior changed
Platform files are procured implicitly on installation and outdated ones are updated by default; create .lock_autoupdate.txt in data/ to opt out. github.com - Behavior changed
OutlineItem.is_closed
OutlineItem.is_closed is now None rather than False if the bookmark has no kids. github.com
And 16 more in this version. Sign up to see every change
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
pypdfium2 3.0.0b1 breaking changes
- Removed
BitmapDataHolder
BitmapDataHolder was removed, since rendering now uses a Python-allocated buffer. Callers no longer need to free resources. github.com - Removed
no_antialias
no_antialias was replaced with separate boolean options no_smoothtext, no_smoothimage, and no_smoothpath. Update calls that pass no_antialias. github.com
And 12 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.