Free Support Forum - aspose.com

Unknow text appears on slide on updating text (Java) (2225)

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);

@MrFilters,

I have worked with the sample file and code shared by you. It seems to be an issue with API. An issue with ID SLIDESJAVA-38059 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as SLIDESJAVA-38059) have been fixed in this update.