Skip to content

Commit 35f3383

Browse files
src/__init__.py: expect new mupdf pdf_is_ocg_hidden() API in mupdf-1.26.11.
mupdf-1.26.x now contains new pdf_is_ocg_hidden() API.
1 parent 25997ce commit 35f3383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4935,7 +4935,7 @@ def get_ocgs(self):
49354935
o = mupdf.pdf_array_get( intent, j)
49364936
if mupdf.pdf_is_name( o):
49374937
intents.append( mupdf.pdf_to_name( o))
4938-
if mupdf_version_tuple >= (1, 27):
4938+
if mupdf_version_tuple >= (1, 26, 11):
49394939
resource_stack = mupdf.PdfResourceStack()
49404940
hidden = mupdf.pdf_is_ocg_hidden( pdf, resource_stack, usage, ocg)
49414941
else:

0 commit comments

Comments
 (0)