Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pymupdf from 1.21.1 to 1.22.0 #10921

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 17, 2023

Bumps pymupdf from 1.21.1 to 1.22.0.

Release notes

Sourced from pymupdf's releases.

PyMuPDF-1.22.0 released

PyMuPDF-1.22.0 has been released.

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

python -m pip install --upgrade pymupdf

Changes in version 1.22.0 (2023-04-14)

  • This release uses MuPDF-1.22.0.

  • Behavioural changes:

    • Text extraction now includes glyphs that overlap with clip rect; previously they were included only if they were entirely contained within the clip rect.
  • Bug fixes:

    • Fixed #1763: Interactive(smartform) form PDF calculation not working in pymupdf
    • Fixed #1995: RuntimeError: image is too high for a long paged pdf file when trying
    • Fixed #2093: Image in pdf changes color after applying redactions
    • Fixed #2108: Redaction removing more text than expected
    • Fixed #2141: Failed to read JPX header when trying to get blocks
    • Fixed #2144: Replace image throws an error
    • Fixed #2146: Wrong Handling of Reference Count of "None" Object
    • Fixed #2161: Support adding images as pages directly
    • Fixed #2168: page.add_highlight_annot(start=pointa, stop=pointb) not working
    • Fixed #2173: Double free of Colorspace used in Pixmap
    • Fixed #2179: Incorrect documentation for pixmap.tint_with()
    • Fixed #2208: Pushbutton widget appears as check box
    • Fixed #2210: apply_redactions() move pdf text to right after redaction
    • Fixed #2220: Page.delete_image() | object has no attribute is_image
    • Fixed #2228: open some pdf cost too much time
    • Fixed #2238: Bug - can not extract data from file in the newest version 1.21.1
    • Fixed #2242: Python quits silently in Story.element_positions() if callback function prototype is wrong
    • Fixed #2248: After redacting the content, the position of the remaining text changes
    • Fixed #2250: docs: unclear or broken link in page.rst
    • Fixed #2251: mupdf_display_errors does not apply to Pixmap when loading broken image
    • Fixed #2270: Annot.get_text("words") - doesn't return the first line of words
    • Fixed #2275: insert_image: document that rotations are counterclockwise
    • Fixed #2278: Can not make widget (checkbox) to read-only by adding flags PDF_FIELD_IS_READ_ONLY
    • Fixed #2290: Different image format/data from Page.get_text("dict") and Fitz.get_page_images()
    • Fixed #2293: 68 failed tests when installing from sdist on my box
    • Fixed #2300: Too much recursion in tree (parents), makes program terminate
    • Fixed #2322: add_highlight_annot using clip generates "A Number is Out of Range" error in PDF
  • Other:

... (truncated)

Changelog

Sourced from pymupdf's changelog.

Change Log

Changes in version 1.22.0 (2023-04-14)

  • This release uses MuPDF-1.22.0.

  • Behavioural changes:

    • Text extraction now includes glyphs that overlap with clip rect; previously they were included only if they were entirely contained within the clip rect.
  • Bug fixes:

    • Fixed [#1763](https://github.com/pymupdf/pymupdf/issues/1763) <https://github.com/pymupdf/PyMuPDF/issues/1763>_: Interactive(smartform) form PDF calculation not working in pymupdf
    • Fixed [#1995](https://github.com/pymupdf/pymupdf/issues/1995) <https://github.com/pymupdf/PyMuPDF/issues/1995>_: RuntimeError: image is too high for a long paged pdf file when trying
    • Fixed [#2093](https://github.com/pymupdf/pymupdf/issues/2093) <https://github.com/pymupdf/PyMuPDF/issues/2093>_: Image in pdf changes color after applying redactions
    • Fixed [#2108](https://github.com/pymupdf/pymupdf/issues/2108) <https://github.com/pymupdf/PyMuPDF/issues/2108>_: Redaction removing more text than expected
    • Fixed [#2141](https://github.com/pymupdf/pymupdf/issues/2141) <https://github.com/pymupdf/PyMuPDF/issues/2141>_: Failed to read JPX header when trying to get blocks
    • Fixed [#2144](https://github.com/pymupdf/pymupdf/issues/2144) <https://github.com/pymupdf/PyMuPDF/issues/2144>_: Replace image throws an error
    • Fixed [#2146](https://github.com/pymupdf/pymupdf/issues/2146) <https://github.com/pymupdf/PyMuPDF/issues/2146>_: Wrong Handling of Reference Count of "None" Object
    • Fixed [#2161](https://github.com/pymupdf/pymupdf/issues/2161) <https://github.com/pymupdf/PyMuPDF/issues/2161>_: Support adding images as pages directly
    • Fixed [#2168](https://github.com/pymupdf/pymupdf/issues/2168) <https://github.com/pymupdf/PyMuPDF/issues/2168>_: page.add_highlight_annot(start=pointa, stop=pointb) not working
    • Fixed [#2173](https://github.com/pymupdf/pymupdf/issues/2173) <https://github.com/pymupdf/PyMuPDF/issues/2173>_: Double free of Colorspace used in Pixmap
    • Fixed [#2179](https://github.com/pymupdf/pymupdf/issues/2179) <https://github.com/pymupdf/PyMuPDF/issues/2179>_: Incorrect documentation for pixmap.tint_with()
    • Fixed [#2208](https://github.com/pymupdf/pymupdf/issues/2208) <https://github.com/pymupdf/PyMuPDF/issues/2208>_: Pushbutton widget appears as check box
    • Fixed [#2210](https://github.com/pymupdf/pymupdf/issues/2210) <https://github.com/pymupdf/PyMuPDF/issues/2210>_: apply_redactions() move pdf text to right after redaction
    • Fixed [#2220](https://github.com/pymupdf/pymupdf/issues/2220) <https://github.com/pymupdf/PyMuPDF/issues/2220>_: Page.delete_image() | object has no attribute is_image
    • Fixed [#2228](https://github.com/pymupdf/pymupdf/issues/2228) <https://github.com/pymupdf/PyMuPDF/issues/2228>_: open some pdf cost too much time
    • Fixed [#2238](https://github.com/pymupdf/pymupdf/issues/2238) <https://github.com/pymupdf/PyMuPDF/issues/2238>_: Bug - can not extract data from file in the newest version 1.21.1
    • Fixed [#2242](https://github.com/pymupdf/pymupdf/issues/2242) <https://github.com/pymupdf/PyMuPDF/issues/2242>_: Python quits silently in Story.element_positions() if callback function prototype is wrong
    • Fixed [#2248](https://github.com/pymupdf/pymupdf/issues/2248) <https://github.com/pymupdf/PyMuPDF/issues/2248>_: After redacting the content, the position of the remaining text changes
    • Fixed [#2250](https://github.com/pymupdf/pymupdf/issues/2250) <https://github.com/pymupdf/PyMuPDF/issues/2250>_: docs: unclear or broken link in page.rst
    • Fixed [#2251](https://github.com/pymupdf/pymupdf/issues/2251) <https://github.com/pymupdf/PyMuPDF/issues/2251>_: mupdf_display_errors does not apply to Pixmap when loading broken image
    • Fixed [#2270](https://github.com/pymupdf/pymupdf/issues/2270) <https://github.com/pymupdf/PyMuPDF/issues/2270>_: Annot.get_text("words") - doesn't return the first line of words
    • Fixed [#2275](https://github.com/pymupdf/pymupdf/issues/2275) <https://github.com/pymupdf/PyMuPDF/issues/2275>_: insert_image: document that rotations are counterclockwise
    • Fixed [#2278](https://github.com/pymupdf/pymupdf/issues/2278) <https://github.com/pymupdf/PyMuPDF/issues/2278>_: Can not make widget (checkbox) to read-only by adding flags PDF_FIELD_IS_READ_ONLY
    • Fixed [#2290](https://github.com/pymupdf/pymupdf/issues/2290) <https://github.com/pymupdf/PyMuPDF/issues/2290>_: Different image format/data from Page.get_text("dict") and Fitz.get_page_images()
    • Fixed [#2293](https://github.com/pymupdf/pymupdf/issues/2293) <https://github.com/pymupdf/PyMuPDF/issues/2293>_: 68 failed tests when installing from sdist on my box
    • Fixed [#2300](https://github.com/pymupdf/pymupdf/issues/2300) <https://github.com/pymupdf/PyMuPDF/issues/2300>_: Too much recursion in tree (parents), makes program terminate
    • Fixed [#2322](https://github.com/pymupdf/pymupdf/issues/2322) <https://github.com/pymupdf/PyMuPDF/issues/2322>_: add_highlight_annot using clip generates "A Number is Out of Range" error in PDF
  • Other:

    • Add key "/AS (Yes)" to the underlying annot object of a selected button form field.

    • Remove unused Document methods has_xref_streams() and has_old_style_xrefs() as MuPDF equivalents have been removed.

... (truncated)

Commits
  • a79522a setup.py tests/: Fixed fstrings to work with python-3.7.
  • 41c2a31 changes.txt: added #2322
  • 8c39748 setup.py: use mupdf-1.22.0-source.tar.gz.
  • 2efb312 Updated dates for release.
  • 568c81a Updates to docs for next release.
  • 0ba7cdf setup.py: update module to 1.22.0.
  • 531cd57 setup.py: default to mupdf-1.22.0-rc1-source.tar.gz.
  • 7b5cfc6 fitz/init.py: allow use with previous version of mupdf.
  • f92f27e fitz/version.i: incremented version to 1.22.0.
  • 8d05ff1 fitz/helper-fields.i: fix handling of pdf_field_name / pdf_load_field_name.
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 17, 2023
@cla-bot cla-bot bot added the cla-signed CLA Bot: community license agreement signed label Apr 17, 2023
@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #10921 (83fde53) into master (e5755bb) will not change coverage.
The diff coverage is n/a.

❗ Current head 83fde53 differs from pull request most recent head 432a6ad. Consider uploading reports for the commit 432a6ad to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10921   +/-   ##
=======================================
  Coverage   62.22%   62.22%           
=======================================
  Files         828      828           
  Lines       51252    51252           
  Branches     6564     6564           
=======================================
  Hits        31893    31893           
  Misses      17663    17663           
  Partials     1696     1696           

@afabiani afabiani added this to the 4.1.0 milestone Apr 17, 2023
@dependabot dependabot bot force-pushed the dependabot/pip/pymupdf-1.22.0 branch from 83fde53 to 334bbef Compare April 18, 2023 08:11
Bumps [pymupdf](https://github.com/pymupdf/pymupdf) from 1.21.1 to 1.22.0.
- [Release notes](https://github.com/pymupdf/pymupdf/releases)
- [Changelog](https://github.com/pymupdf/PyMuPDF/blob/1.22.0/changes.txt)
- [Commits](pymupdf/PyMuPDF@1.21.1...1.22.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/pymupdf-1.22.0 branch from 334bbef to 432a6ad Compare April 18, 2023 08:14
@afabiani afabiani merged commit cdd4c30 into master Apr 18, 2023
@afabiani afabiani deleted the dependabot/pip/pymupdf-1.22.0 branch April 18, 2023 08:16
github-actions bot pushed a commit that referenced this pull request Apr 18, 2023
Bumps [pymupdf](https://github.com/pymupdf/pymupdf) from 1.21.1 to 1.22.0.
- [Release notes](https://github.com/pymupdf/pymupdf/releases)
- [Changelog](https://github.com/pymupdf/PyMuPDF/blob/1.22.0/changes.txt)
- [Commits](pymupdf/PyMuPDF@1.21.1...1.22.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit cdd4c30)
afabiani pushed a commit that referenced this pull request Apr 18, 2023
Bumps [pymupdf](https://github.com/pymupdf/pymupdf) from 1.21.1 to 1.22.0.
- [Release notes](https://github.com/pymupdf/pymupdf/releases)
- [Changelog](https://github.com/pymupdf/PyMuPDF/blob/1.22.0/changes.txt)
- [Commits](pymupdf/PyMuPDF@1.21.1...1.22.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit cdd4c30)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 4.1.x cla-signed CLA Bot: community license agreement signed dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant