MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / clear_text

Method clear_text

utils/src/presentation.py:1276–1283  ·  view source on GitHub ↗
(self, shapes: list[BaseShape])

Source from the content-addressed store, hash-verified

1274 shape.img_path = "resource/pic_placeholder.png"
1275
1276 def clear_text(self, shapes: list[BaseShape]):
1277 for shape in shapes:
1278 if isinstance(shape, PPTXGroupShape):
1279 self.clear_text(shape.shapes)
1280 elif shape.has_text_frame:
1281 for para in shape.text_frame.paragraphs:
1282 for run in para.runs:
1283 run.text = "a" * len(run.text)
1284
1285 def to_text(self, show_image: bool = False) -> str:
1286 """

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected