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

Function JM_get_border_style

src/__init__.py:19687–19700  ·  view source on GitHub ↗

return pdf_obj "border style" from Python str

(style)

Source from the content-addressed store, hash-verified

19685
19686
19687def JM_get_border_style(style):
19688 '''
19689 return pdf_obj "border style" from Python str
19690 '''
19691 val = mupdf.PDF_ENUM_NAME_S
19692 if style is None:
19693 return val
19694 s = style
19695 if s.startswith("b") or s.startswith("B"): val = mupdf.PDF_ENUM_NAME_B
19696 elif s.startswith("d") or s.startswith("D"): val = mupdf.PDF_ENUM_NAME_D
19697 elif s.startswith("i") or s.startswith("I"): val = mupdf.PDF_ENUM_NAME_I
19698 elif s.startswith("u") or s.startswith("U"): val = mupdf.PDF_ENUM_NAME_U
19699 elif s.startswith("s") or s.startswith("S"): val = mupdf.PDF_ENUM_NAME_S
19700 return val
19701
19702
19703def JM_get_font(

Callers 2

JM_annot_set_borderFunction · 0.85
JM_set_widget_propertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…