build(deps-dev): update pymupdf requirement from <2,>=1.24 to >=1.24,<3
Brought to you by:
miniork
Originally created by: dependabot[bot]
Updates the requirements on pymupdf to permit the latest version.
Sourced from pymupdf's releases.
PyMuPDF-2.1 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 pymupdfChanges in version 2.1
Fixed issues:
- Fixed #5196](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5196">/issues/5196)
- Fixed #5214](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5214">/issues/5214)
- Fixed #5216](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5216">/issues/5216)
- Fixed #5220](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5220">/issues/5220)
Other:
- Improve upgrade from 1.x to 2.x via pymupdf4llm or pymupdf_layout.
- Reduced startup time using lazy internal import of large modules.
- Retrospectively added date of 2.0 release.
- Retrospectively marked #5115](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5115">/issues/5115) as fixed in 2.0.
- Use MuPDF-1.28.6.
Sourced from pymupdf's changelog.
Change Log
Changes in next version
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](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5241">/issues/5241)- Fixed
5280 <https://github.com/pymupdf/PyMuPDF/issues/5280>_: remove_rotation() stretches Square and Circle annotations #5280](https://github.com/href="https://redirect.github.com/pymupdf/pymupdf/issues/5280">/issues/5280)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 workers instead of plain list indices, which silently processed the wrong pages for any non-contiguous/non-zero-based
pageslist.- table.chars_in_rect(): compare against c["top"]/c["bottom"] (top-down, matching the rect from page.get_drawings()) instead of c["y0"]/c["y1"] (PDF-native bottom-up space), fixing table detection for frames drawn
... (truncated)
16c664f tests/test_metadata.py add tests for set_metadata() update to trailer.fa222d0 src/init.py:xref_set_key(): fix update to trailer.c109ebc tests/test_general.py:test_5182(): avoid failure with pyodide and free-thread...d2423b1 changes.txt: updates for 2.1.dbddcf2 tests/test_upgrade.py: new, checks upgrade from 1.x to current pymupdf 2.x ve...f721d71 tests/util.py: added diff_dicts().27f4a6c setup.py: default to mupdf-1.28.6.659bae4 .github/ISSUE_TEMPLATE/bug_report.yml: update for 2.1.f4c638d setup.py: update version to 2.1.4bdb17b tests/test_general.py: test_5182(), new, checks warnings/errors with old swig.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.