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

Method _load_annot

src/__init__.py:10181–10188  ·  view source on GitHub ↗
(self, name, xref)

Source from the content-addressed store, hash-verified

10179 return value
10180
10181 def _load_annot(self, name, xref):
10182 page = self._pdf_page()
10183 if xref == 0:
10184 annot = JM_get_annot_by_name(page, name)
10185 else:
10186 annot = JM_get_annot_by_xref(page, xref)
10187 if annot.m_internal:
10188 return Annot(annot)
10189
10190 def _makePixmap(self, doc, ctm, cs, alpha=0, annots=1, clip=None):
10191 pix = JM_pixmap_from_page(doc, self.this, ctm, cs, alpha, annots, clip)

Callers 1

load_annotMethod · 0.95

Calls 4

_pdf_pageMethod · 0.95
JM_get_annot_by_nameFunction · 0.85
JM_get_annot_by_xrefFunction · 0.85
AnnotClass · 0.85

Tested by

no test coverage detected