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

Method extractTextbox

src/__init__.py:16604–16610  ·  view source on GitHub ↗
(self, rect)

Source from the content-addressed store, hash-verified

16602 return "".join([b[4] for b in blocks])
16603
16604 def extractTextbox(self, rect):
16605 this_tpage = self.this
16606 assert isinstance(this_tpage, mupdf.FzStextPage)
16607 area = JM_rect_from_py(rect)
16608 found = JM_copy_rectangle(this_tpage, area)
16609 rc = PyUnicode_DecodeRawUnicodeEscape(found)
16610 return rc
16611
16612 def extractWORDS(self, delimiters=None):
16613 """Return a list with text word information."""

Callers 3

get_textboxFunction · 0.80
get_textboxMethod · 0.80
get_textboxFunction · 0.80

Calls 3

JM_rect_from_pyFunction · 0.85
JM_copy_rectangleFunction · 0.85

Tested by

no test coverage detected