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

Method rect

src/__init__.py:16685–16692  ·  view source on GitHub ↗

Page rectangle.

(self)

Source from the content-addressed store, hash-verified

16683
16684 @property
16685 def rect(self):
16686 """Page rectangle."""
16687 this_tpage = self.this
16688 mediabox = this_tpage.m_internal.mediabox
16689 val = JM_py_from_rect(mediabox)
16690 val = Rect(val)
16691
16692 return val
16693
16694 def search(self, needle, hit_max=0, quads=1):
16695 """Locate 'needle' returning rects or quads."""

Callers

nothing calls this directly

Calls 2

JM_py_from_rectFunction · 0.85
RectClass · 0.85

Tested by

no test coverage detected