Hi, after i add new text at the second slide some other random text appears (see the screenshoot)
presentation 10-Compressor Piston Rod Runout.zip (551.5 KB)
screenshot: Capture.PNG (113.9 KB)
code:
Presentation presentation = new Presentation(
"10-Compressor Piston Rod Runout.pptx");
IBaseSlide slide = presentation.getSlides().get_Item(1);
AutoShape aShape = (AutoShape) slide.getShapes().get_Item(2);
IParagraph para = aShape.getTextFrame().getParagraphs().get_Item(0);
para.getPortions().clear();
para.getPortions().add(new Portion("NEW TEXT"));
presentation.save("saved-10ASPOSE.pptx", SaveFormat.Pptx);