Skip to content

Commit

Permalink
Correct TextPage creation Code
Browse files Browse the repository at this point in the history
  • Loading branch information
JorjMcKie committed May 13, 2024
1 parent 2067826 commit 7d8d41c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2556,9 +2556,10 @@ def get_pixmap(self, matrix=None, colorspace=None, alpha=0, clip=None):
return val

def get_textpage(self, flags=3):
"""Make a TextPage from a DisplayList."""
stext_options = mupdf.FzStextOptions()
stext_options.flags = flags
val = mupdf.fz_new_stext_page_from_display_list( self.this, stext_options)
val = mupdf.FzStextPage(self.this, stext_options)
val.thisown = True
return val

Expand Down

0 comments on commit 7d8d41c

Please sign in to comment.