Represent the presentation in text.
(self, show_image: bool = False)
| 1283 | run.text = "a" * len(run.text) |
| 1284 | |
| 1285 | def to_text(self, show_image: bool = False) -> str: |
| 1286 | """ |
| 1287 | Represent the presentation in text. |
| 1288 | """ |
| 1289 | return "\n----\n".join( |
| 1290 | [ |
| 1291 | ( |
| 1292 | f"Slide {slide.slide_idx} of {len(self.prs.slides)}\n" |
| 1293 | + (f"Title:{slide.slide_title}\n" if slide.slide_title else "") |
| 1294 | + slide.to_text(show_image) |
| 1295 | ) |
| 1296 | for slide in self.slides |
| 1297 | ] |
| 1298 | ) |
| 1299 | |
| 1300 | def __len__(self): |
| 1301 | return len(self.slides) |