Menu ▾ ▴

#236 build(deps-dev): update pymupdf requirement from <2,>=1.24 to >=1.24,<3

open
nobody
5 days ago
5 days ago
Anonymous
No

Originally created by: dependabot[bot]

Updates the requirements on pymupdf to permit the latest version.

Release notes

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 pymupdf

Changes in version 2.1

Fixed issues:

Other:

Changelog

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 pages list.
    • 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)

Commits
  • 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.
  • Additional commits viewable in compare view


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) </dependency>

Discussion


Log in to post a comment.