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

Method border

src/__init__.py:852–868  ·  view source on GitHub ↗

Border information.

(self)

Source from the content-addressed store, hash-verified

850
851 @property
852 def border(self):
853 """Border information."""
854 CheckParent(self)
855 atype = self.type[0]
856 if atype not in (
857 mupdf.PDF_ANNOT_CIRCLE,
858 mupdf.PDF_ANNOT_FREE_TEXT,
859 mupdf.PDF_ANNOT_INK,
860 mupdf.PDF_ANNOT_LINE,
861 mupdf.PDF_ANNOT_POLY_LINE,
862 mupdf.PDF_ANNOT_POLYGON,
863 mupdf.PDF_ANNOT_SQUARE,
864 ):
865 return dict()
866 ao = mupdf.pdf_annot_obj(self.this)
867 ret = JM_annot_border(ao)
868 return ret
869
870 def clean_contents(self, sanitize=1):
871 """Clean appearance contents stream."""

Callers

nothing calls this directly

Calls 2

CheckParentFunction · 0.85
JM_annot_borderFunction · 0.85

Tested by

no test coverage detected