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

Method _border

src/__init__.py:8463–8471  ·  view source on GitHub ↗
(self, doc, xref)

Source from the content-addressed store, hash-verified

8461 return "link on " + str(self.parent)
8462
8463 def _border(self, doc, xref):
8464 pdf = _as_pdf_document(doc, required=0)
8465 if not pdf.m_internal:
8466 return
8467 link_obj = mupdf.pdf_new_indirect(pdf, xref, 0)
8468 if not link_obj.m_internal:
8469 return
8470 b = JM_annot_border(link_obj)
8471 return b
8472
8473 def _colors(self, doc, xref):
8474 pdf = _as_pdf_document(doc, required=0)

Callers 1

borderMethod · 0.95

Calls 2

_as_pdf_documentFunction · 0.85
JM_annot_borderFunction · 0.85

Tested by

no test coverage detected