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

Jules - various #4206

Merged
merged 6 commits into from
Jan 8, 2025
Merged

Jules - various #4206

merged 6 commits into from
Jan 8, 2025

Conversation

julian-smith-artifex-com
Copy link
Collaborator

src/init.py: improved Pixmap._samples_mv.
docs/tutorial.rst: fixed reference to appendix1.
docs/pymupdf-pro.rst: added description of unlock()'s font args.
tests/: support mupdf-1.25.2's new fz_stext_char flags.
tests/resources/test_1645_expected_1.25.pdf: match latest mupdf master.
tests/test_mupdf_regressions.py: test_707727(): updated to match latest mupdf.

Set at start of Pixmap.__init__() so that it is always seen by __del__().

Added Pixmap._samples_mv_release() and call from Pixmap.shrink(), which should
avoid potential crashes when pixmap is resized.
Add new `char_flags` member to span dictionary if mupdf >= 1.25.2, containing
extra low-level information.

For example allows detection of invisible text.

Updated docs/textpage.rst.

Improved tests of mupdf version in src/extra.i.

Added tests/test_textextract.py:test_4147() which checks that we can detect
when text is invisible.
@julian-smith-artifex-com julian-smith-artifex-com merged commit 653617c into main Jan 8, 2025
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants