Content Difference after Saving PowerPoint Presentation to PPTX in Java (3004)

Hello,

I am writing to you about the problem we encountered in working with MSO PowerPoint document using the Aspose Slides for Java library (v21.10). We are using Ubuntu 22.04 LTS and OpenJDK 11.0.13.

There is a difference in content when presetting values and saving presentation. Assert statement can prove the visual difference.

In the attachment below, you can find the ZIP file with test code, source PPTX file as well as screenshot of presentations (before and after).

Best regards!
Aleksandar

Test code, file and screenshot.zip (79.8 KB)

@zpredojevic,
Thank you for reporting on the issue.

I will check the issue and get back to you as soon as possible.

@zpredojevic,
I reproduced the same problem when replacing the text portion in the last SmartArt node with a similar one.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39183

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@zpredojevic,
Our developers have investigated the case. As we noted earlier, SmartArt is a complex object, not just Paragraphs and Portions. If you want to change the text, please use the following code snippet:

Presentation presentation = new Presentation("presentation.pptx");
ISmartArt shape = (SmartArt) presentation.getSlides().get_Item(0).getShapes().get_Item(0);

ISmartArtNode sixthNode = shape.getAllNodes().get_Item(5);

// Get text
String portionText = sixthNode.getTextFrame().getText();

// Set text
sixthNode.getTextFrame().setText(portionText);

presentation.save("output.pptx", SaveFormat.Pptx);

Documents:
Manage SmartArt
Manage SmartArt Shape
Create or Manage PowerPoint SmartArt Shape Node