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

Method to_text

utils/src/presentation.py:1285–1298  ·  view source on GitHub ↗

Represent the presentation in text.

(self, show_image: bool = False)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

to_textMethod · 0.45

Tested by

no test coverage detected