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

Method set_opacity

src/__init__.py:2572–2575  ·  view source on GitHub ↗

Set opacity via CSS style

(self, opacity)

Source from the content-addressed store, hash-verified

2570 return self
2571
2572 def set_opacity(self, opacity):
2573 """Set opacity via CSS style"""
2574 self.append_styled_span(f"opacity: {opacity}")
2575 return self
2576
2577 def set_pagebreak_after(self):
2578 """Insert a page break after this node."""

Callers 2

test_4254Function · 0.45
test_opacityFunction · 0.45

Calls 1

append_styled_spanMethod · 0.95

Tested by 2

test_4254Function · 0.36
test_opacityFunction · 0.36