SlideText class

SlideText class #

Represents the text extracted from the presentation slide.

The SlideText type exposes the following members:

Properties #

Property Description
text The text from the slide shapes.
master_text The text from the master shapes for this slide.
layout_text The text from the layout shapes for this slide.
notes_text The text from the slide notes.
comments_text The text from the slide comments.

Examples #

The following example shows how to extract text from the PowerPoint document in the Arranged mode.

raw_slides_text = slidize.PresentationTextExtractor.process("pres.pptx", slidize.TextExtractionMode.ARRANGED)
for slide_text in raw_slides_text:
    # Print the text extracted from the slide
    print(slide_text.text)
	# Print the text extracted from the master of the slide
    print(slide_text.master_text)
    # Print the text extracted from the layout of the slide
    print(slide_text.layout_text)
    # Print the notes text extracted from the slide
    print(slide_text.notes_text)
    # Print the comments text extracted from the slide
    print(slide_text.comments_text)

See Also #