Skip to content

Remove dependency on MuPDF version #4483

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

JorjMcKie
Copy link
Collaborator

Add all MuPDF STEXT flags up to v1.26.0 to PyMuPDF. Use hard coded values if unknown in an earlier MuPDF version that we still want / need to support. The intention is to switch to MuPDF's symbolic names as soon as we drop support of the corresponding version. Flag bits representing current MuPDF features can always be used because the are ignored by older MuPDF versions.

Also removed some duplicate definitions.

@JorjMcKie JorjMcKie force-pushed the update-text-flags branch 2 times, most recently from f57cb6b to 064c7c0 Compare May 2, 2025 12:22
Add all MuPDF STEXT flags up to v1.26.0 to PyMuPDF.
Use hard coded values if unknown in an earlier MuPDF version that we still want / need to support.
The intention is to switch to MuPDF's symbolic names as soon as we drop support of the corresponding version.
Flag bits representing current MuPDF features can always be used because the are ignored by older MuPDF versions.

Also removed some duplicate definitions.
@JorjMcKie JorjMcKie force-pushed the update-text-flags branch from 064c7c0 to 3fb63a1 Compare May 2, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant