PPTX Slide Notes

Hi,
I saw the postings regarding the slide notes in PPTX, but for some reason, your search engine doesn’t work. So, I’m posting this question again, also to see if there are any other APIs added since then.

In the previous version of Aspose.slides, there is specific API to get the slide notes, but in the new version of Aspose.slides, I don’t see this API anymore. Can you please give me a sample code to retrieve the slide notes?

Thanks,
michelle

Dear MIchelle,

I am sorry for the delayed response. I have prepared a code snippet for you that will help you to refreive text from PPTX slides. Please us the code snippet below to serve the purpose.

PresentationEx pre=new PresentationEx(path+"modified.pptx");

SlideEx Sl=pre.getSlides ().get(0);
NotesSlideEx notes=Sl.getNotesSlide ();

for(int iCount=0;iCount<notes.getShapes().size();iCount++)
{
//Casting to autoshape
AutoShapeEx shp1 = (AutoShapeEx)notes.getShapes().get (iCount);

//Accessing autoshape's text frame
TextFrameEx tFrame = shp1.getTextFrame ();
if(tFrame!=null)
//Extracting Slide notes
System.out .println (tFrame.getText ());
}

Thanks and Regards,