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

Method extractSelection

src/__init__.py:16590–16594  ·  view source on GitHub ↗
(self, pointa, pointb)

Source from the content-addressed store, hash-verified

16588 return val
16589
16590 def extractSelection(self, pointa, pointb):
16591 a = JM_point_from_py(pointa)
16592 b = JM_point_from_py(pointb)
16593 found = mupdf.fz_copy_selection(self.this, a, b, 0)
16594 return found
16595
16596 def extractText(self, sort=False) -> str:
16597 """Return simple, bare text on the page."""

Callers 2

get_text_selectionFunction · 0.80
get_text_selectionFunction · 0.80

Calls 1

JM_point_from_pyFunction · 0.85

Tested by

no test coverage detected