(self, shapes: list[BaseShape])
| 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 | """ |