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

Free Support Forum - aspose.com

Smartart text disappear when changing text using Aspose.Slides for Java

I am trying to change text from smartArts in master page but all smart arts disappear after the file is saved.
presentation = filePPT.ppt.zip (62.2 KB)


String presentationPath = "filePPT.ppt";
Presentation presentation = new Presentation(presentationPath);
IMasterSlide masterSlide = presentation.getMasters().get_Item(0);
IShapeCollection shapes = masterSlide.getShapes();
ISmartArt smartArt = (ISmartArt) shapes.get_Item(5);
ISmartArtNodeCollection nodes = smartArt.getAllNodes();
ISmartArtNode node = nodes.get_Item(0);
IParagraph paragraph = node.getTextFrame().getParagraphs().get_Item(0);
IPortionCollection portions = paragraph.getPortions();
portions.add(new Portion("New Portion"));
presentation.save("saved.ppt", SaveFormat.Ppt);

Can you please check this out.


I have worked with the presentation file using Aspose.Slides for Java 18.5 and have been able to reproduce the issue. A ticket with ID SLIDESJAVA-37104 has been created in our issue tracking system to investigate and resolve the issue. This thread has been associated with the ticket so that we may share the notification with you once issue will be fixed.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan