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

Method set_color

src/__init__.py:2509–2512  ·  view source on GitHub ↗

Set text color via CSS style

(self, color)

Source from the content-addressed store, hash-verified

2507 return self
2508
2509 def set_color(self, color):
2510 """Set text color via CSS style"""
2511 self.append_styled_span(f"color: {self.color_text(color)}")
2512 return self
2513
2514 def set_columns(self, cols):
2515 """Set number of text columns via CSS style"""

Callers 3

set_propertiesMethod · 0.80
code_printerFunction · 0.80
json-example.pyFile · 0.80

Calls 2

append_styled_spanMethod · 0.95
color_textMethod · 0.95

Tested by

no test coverage detected