Free Support Forum - aspose.com

ASPOSE.SLIDE JAVA PHP Text extraction


#1

Hi - Is it possible to extract text from pptx using, targeting individual slide. Any example? I’ve searched round the forums and website with little luck.

Thanks.


#2

@JediJide,

I have observed your comments. I have shared code snippet with you. This will help you to achieve your requirements. Please share feedback with us if there is still an issue.

String path=“F:\Aspose Work\”;
Presentation presentation=new Presentation ();
ITextFrame[] textFramesPPTX = SlideUtil.getAllTextFrames(presentation, true);
for (int i = 0; i < textFramesPPTX.length; i++) {
for(IParagraph para : textFramesPPTX[i].getParagraphs()) {
for(IPortion port : para.getPortions()) {
System.out.print(port.getText());
//presentation.save(path+“test.pptx”,SaveFormat.Pptx);


#3

Many thanks.


#4

@JediJide,

You are very welcome.