Incorrect Chart When Loading and Saving a PPTX File in Java

Dear Aspose Support Team,

I hope this message finds you well. We have encountered a critical bug in the Aspose.Slides for Java library, specifically related to incorrect chart display after export. Below are the details of the issue, along with the necessary information for your review:

Reproduction Steps:

  1. Example presentation with an affected chart:
    import.pptx.zip (52.5 KB)

  2. Code triggering the bug:

public void chartBugReproduction13() throws Exception {
	String importPath = "/path/to/import.pptx";
	String exportPath = "/path/to/export.pptx";

	try (var is = new FileInputStream(new File(importPath))) {
		var pres = new Presentation(is);

		// save imported presentation
		try (var fos = new FileOutputStream(exportPath)) {
			pres.save(fos, SaveFormat.Pptx);
		}
	}
}

Issue Description:

  • Expected Chart Appearance:
    image.png (26.5 KB)

  • Aspose Exported Chart Appearance:
    image.png (23.0 KB)

Observations:

  • The Chart seems to fix itself in Powerpoint when right clicking the chart and selecting “Edit Data in Excel” but breaks itself again when importing and exporting after that

Environment:

  • Aspose.Slides version: 26.5
  • Java version: 25.0.1
  • Operating Systems: Ubuntu 24

Your prompt attention to this matter is highly appreciated. Please let us know if any additional information is required to investigate and resolve this issue.

Thank you for your assistance.

Best regards,

Justin Voitel
Domino informatics GmbH

@justinvo,
Thank you for contacting free support. I need some time to investigate the case. I will get back to you as soon as possible.

@justinvo,
I have reproduced the problem where the chart is displayed incorrectly after loading and saving the PPTX file. We apologize for any inconvenience caused.

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-39834

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.