Extract text from powerpoint presentation

How can I extract the text from one or more powerpoint slides? Is it possible? Any help would be appreciated. Thanks

Dear straubwa,

Thank you for using Aspose.Slides.

Below is a sample code that illustrates; how to extract text from the slide using Aspose.Slides. I have also attached sample presentation for this code. For more information about manipulating slides using Aspose.Slides, please read Developer Guide here.

void ReadText()

{

//read existing presentation

Presentation pres = new Presentation(“srcReadText.ppt”);

//get the reference of first slide

Slide fstSlide = pres.GetSlideByPosition(1);

//iterate through all shapes and print their containing text

foreach (Shape shp in fstSlide.Shapes)

{

if (shp.Placeholder != null)

{

TextHolder th = shp.Placeholder as TextHolder;

Console.WriteLine(“[Placeholder Text]=” + th.Text);

}

else

{

TextFrame tf = shp.TextFrame;

Console.WriteLine(“[Textbox Text]=” + tf.Text);

}

}

}

thanks, that works