MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / __init__

Method __init__

src/__init__.py:16379–16388  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

16377class TextPage:
16378
16379 def __init__(self, *args):
16380 if args_match(args, mupdf.FzRect):
16381 mediabox = args[0]
16382 self.this = mupdf.FzStextPage( mediabox)
16383 elif args_match(args, mupdf.FzStextPage):
16384 self.this = args[0]
16385 else:
16386 raise Exception(f'Unrecognised args: {args}')
16387 self.thisown = True
16388 self.parent = None
16389
16390 def _extractText(self, format_):
16391 this_tpage = self.this

Callers

nothing calls this directly

Calls 1

args_matchFunction · 0.85

Tested by

no test coverage detected