I'm currently working with some older java code that extracts text from a PPT file. I'm in the middle of creating a new class that will extract text from a PPTX file. In the older code, we execute two instances of extracting text:
1. shape.getTextFrame().getText(); // By shapes
2. ((TextHolder) holder).getText(); // By placeholder
From what I've found in the documentation this is done differently for a pptx file. Is this all of the code I will need or is there a way to replicate the two methods of extracting text (by shapes and placeholder) as it is done in a ppt file?
for (int j = 0; j < shapesCount; j++) {
ShapeEx shape = shps.get(j);
if (shape.isTextHolder()) {
AutoShapeEx ashp = (AutoShapeEx)shape;
if (ashp.getTextFrame() != null)
mpTHA.handleText(TS_PLACEHOLDER, ashp.getTextFrame().getText(), null);
//texts.add(shape.getTextFrame().getText());
}
}
Thanks,
Jesse Majcher
jmajcher@qumu.com
This message was posted using Aspose.Live 2 Forum