Skip to content

Commit

Permalink
src/__init__.py: cope with mupdf-1.23.11 having new filter api.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Feb 21, 2024
1 parent c64b7dd commit 43c5ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16048,7 +16048,7 @@ class SanitizeFilterOptions(mupdf.PdfSanitizeFilterOptions2):
def __init__(self):
super().__init__()
self.use_virtual_image_filter()
if mupdf_version_tuple >= (1, 24):
if mupdf_version_tuple >= (1, 23, 11):
def image_filter(self, ctx, ctm, name, image, scissor):
JM_image_filter(None, mupdf.FzMatrix(ctm), name, image)
else:
Expand Down

0 comments on commit 43c5ae5

Please sign in to comment.