Skip to content

chore: bump pymupdf from 2.1 to 2.2 in /tooling - #92

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/tooling/pymupdf-2.2
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/tooling/pymupdf-2.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps pymupdf from 2.1 to 2.2.

Release notes

Sourced from pymupdf's releases.

PyMuPDF-2.2 released

Wheels for Windows, Linux and MacOS, and the sdist, are available on https://pypi.org and can be installed in the usual way, for example:

python -m pip install --upgrade pymupdf

Changes in version 2.2

Fixed issues:

New features:

  • Add extended FormFields Support.

Other:

  • Various small correctness fixes (from Abelardo Ramirez):

    • Archive.add(): fix broken assert (missing comma turned the error message into part of the boolean expression, disabling the empty-name check for binary content).
    • Annot.file_info: avoid UnboundLocalError when a crafted/malformed attachment's /FS dict has neither /UF nor /F.
    • Page.set_language(): call pdfpage.obj() instead of passing the bound method itself, which broke every call that actually sets a language.
    • Widget.on_state(): skip None entries from button_states() instead of raising TypeError.
    • Pixmap.tobytes(): add missing f-string prefix so the alpha error message actually includes the format name.
    • JM_matrix_from_py(): fix copy-paste bug returning FzRect() instead of FzMatrix() on the float-conversion failure path.
    • utils.get_text(): remove a bare assert that made the documented "misspelled option falls back to text" behavior unreachable.
    • utils.get_label_pno(): return "" (as documented) instead of raising IndexError when no label rule applies to the given page number.
    • utils.get_sorted_text(): guard against ZeroDivisionError for zero-width glyph bboxes.
    • _apply_pages.py (method='fork'): send the actual page numbers to

... (truncated)

Changelog

Sourced from pymupdf's changelog.

Change Log

Changes in next version

Fixed issues:

  • Fixed 4755 <https://github.com/pymupdf/PyMuPDF/issues/4755>_: Unexpected behavior of annot.set_rect() with carets and strikeouts

Other:

  • Modified return value from Annot.rect attribute.
  • Added Annot.bounds attribute.

Changes in version 2.2 (2026-11-26)

New features:

  • Add extended FormFields Support.
  • Fuzzy Text Search - PyMuPDF 2.2 adds Page.search_for_fuzzy() <https://pymupdf.readthedocs.io/en/latest/page.html#Page.search_for_fuzzy>_, a way to find text on a PDF page even when it doesn't match your search string exactly.

Fixed issues:

  • Fixed 4484 <https://github.com/pymupdf/PyMuPDF/issues/4484>_: set_toc does not correctly set y-positions (from Gyanu Mayank)
  • Fixed 5175 <https://github.com/pymupdf/PyMuPDF/issues/5175>_: find_tables(lines_strict): opaque white fill+stroke rectangle creates a phantom row (from Manoj)
  • Fixed 5185 <https://github.com/pymupdf/PyMuPDF/issues/5185>_: pymupdf4llm: table cells drop the second letter of a ligature when quad corrections are unset (from Manoj)
  • Fixed 5198 <https://github.com/pymupdf/PyMuPDF/issues/5198>_: 2.0: Table.extract() moves the decimal point out of numbers ("0.74" comes back as "0 74", newline, ".") \u2014 regression from 1.28.2
  • Fixed 5238 <https://github.com/pymupdf/PyMuPDF/issues/5238>: JM_new_lineart_device_Device.init omits call parentheses on use_virtual*_text, disabling SWIG director text callbacks
  • Fixed 5239 <https://github.com/pymupdf/PyMuPDF/issues/5239>_: Document.set_toc_item() crashes on point-like tuple/list coordinates (AttributeError) and inverts dest_dict['to'] via in-place mutation
  • Fixed 5240 <https://github.com/pymupdf/PyMuPDF/issues/5240>_: Document.delete_pages() raises ValueError: bad page number(s) on negative page numbers passed as two positional arguments
  • Fixed 5241 <https://github.com/pymupdf/PyMuPDF/issues/5241>_: Table.to_pandas() permanently mutates Table.header.names in-place, corrupting column names and downstream exports #5241
  • Fixed 5280 <https://github.com/pymupdf/PyMuPDF/issues/5280>_: remove_rotation() stretches Square and Circle annotations #5280

Other:

  • Various small correctness fixes (from Abelardo Ramirez):

    • Archive.add(): fix broken assert (missing comma turned the error message into part of the boolean expression, disabling the empty-name check for binary content).
    • Annot.file_info: avoid UnboundLocalError when a crafted/malformed attachment's /FS dict has neither /UF nor /F.
    • Page.set_language(): call pdfpage.obj() instead of passing the bound method itself, which broke every call that actually sets a language.
    • Widget.on_state(): skip None entries from button_states() instead of raising TypeError.
    • Pixmap.tobytes(): add missing f-string prefix so the alpha error message actually includes the format name.

... (truncated)

Commits
  • ac3ad01 Update version to 2.2.
  • 938f5a4 changes.txt: moved new 'Page.search_for_fuzzy' item into the existing set of ...
  • f16b043 Mark intentional misspellings in fuzzy search tests
  • 9e61a71 Add fuzzy text search with edit distances and grouped quads
  • 46bcbdf changes.txt: mention the authors of external PRs.
  • 7ef0eeb changes.txt: updated to match current status.
  • 7608877 tests/test_tables.py: added test_5198(), fixed in current, fails with v2.1.
  • 593ad9e tests/: added test_4484(). Fixed in current, fails with v2.1.
  • 544048e Docs: adds info for LangChain integration.
  • 404e78e Docs: adds marketing link to PDF.co on homepage.
  • 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 [pymupdf](https://github.com/pymupdf/pymupdf) from 2.1 to 2.2.
- [Release notes](https://github.com/pymupdf/pymupdf/releases)
- [Changelog](https://github.com/pymupdf/PyMuPDF/blob/main/changes.txt)
- [Commits](pymupdf/PyMuPDF@2.1...2.2)

---
updated-dependencies:
- dependency-name: pymupdf
  dependency-version: '2.2'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Dec 1, 2026

This branch has not been deployed

No deployments
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