We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Extracting text using Aspose.Slides for Java PHP bridge

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.



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()) {
// presentation.save(path+“test.pptx”,SaveFormat.Pptx);

Many thanks.


You are very welcome.