Incorrect Charts When Loading and Saving a PowerPoint 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 charts after export. Below are the details of the issue, along with the necessary information for your review:

Reproduction Steps:

  1. Example presentation with the affected charts:
    import.pptx.zip (104.5 KB)

  2. Code triggering the bug:

public void chartBugReproduction14() 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:

Observations:

  • The Last 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.7
  • 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
We apologize for any inconvenience caused. Our team has reproduced the chart rendering issue you described when loading and saving a PPTX with Aspose.Slides for Java. This behavior has been confirmed as a bug and is being tracked internally for a fix.

Issue ID(s): SLIDESJAVA-39845