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:
-
Example presentation with an affected chart:
import.zip (85.3 KB)
The import.pptx file contains 2 slides where in each slide the top most chart is missing a green data line when comparing the original import.pptx to the resulting export.pptx
-
Code triggering the bug:
public void chartBugReproduction() throws Exception {
String importPath = "/path/to/import.pptx";
String exportPath = "/output/export.pptx";
String exportClonesPath = "/output/export-with-clones.pptx";
try (var is = new FileInputStream(new File(importPath))) {
var pres = new Presentation(is);
// save imported presentation -> missing chart
try (var fos = new FileOutputStream(exportPath)) {
pres.save(fos, SaveFormat.Pptx);
} catch (Exception e) {
e.printStackTrace();
}
// create new presentation and add clones -> also missing chart
var newPres = new Presentation();
for (var slide : pres.getSlides()) {
newPres.getSlides().addClone(slide);
}
try (var fos = new FileOutputStream(exportClonesPath)) {
newPres.save(fos, SaveFormat.Pptx);
}
} catch (Exception e) {
e.printStackTrace();
}
}
Please Change the import/export paths accordingly!
Issue Description:
Observations:
- The result is the same when copying the slides to a blank presentation (see exported file in Bug Reproduction)
Questions:
- Is this behavior expected? This is critical for our use case, and we seek clarification on whether this is a bug, intended functionality and how this could be fixed so we get a exported chart like in the original file.
Environment:
- Aspose.Slides version: 25.11
- Java version: 24.0.2
- Operating Systems: Ubuntu 22
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
The chart line disappearing after Presentation.save is not expected behavior for a line chart.
With the code you posted the chart should be preserved exactly as in the source file.
Next steps to isolate the issue
-
Upgrade to the latest Aspose.Slides for Java build (e.g., 25.12 or newer) and run the same repro.
If the problem disappears, it was a defect that has already been fixed.
-
If the issue remains, please attach the original import.pptx (the one inside the import.zip) so we can reproduce it on our side.
A minimal repro package should contain only the presentation file and the Java snippet you are using.
-
Let us know whether the problem also occurs when saving to another format (e.g., PDF, PPT).
This helps determine if the defect is specific to PPTX serialization.
-
Confirm the exact JDK you are using (e.g., OpenJDK 24.0.2) and that the license file is correctly applied (if you are using a paid license).
Once we have the presentation file and the result of step 1, we can log an internal issue and provide a fix or a workaround.
Regarding 1: Currently there is no newer version available than 25.11 which we are using right now!
Regarding 2: The issue remains and iam not allowed to upload .pptx files, so you have to unpack the zip where the original import.pptx is included
Regarding 3: It 's the same issue with PDF export! The upper Chart is missing…
Regarding 4: Here is the complete “java --version” information for my dev environment (It is the same for our production environment):
openjdk 24.0.2 2025-07-15
OpenJDK Runtime Environment Temurin-24.0.2+12 (build 24.0.2+12)
OpenJDK 64-Bit Server VM Temurin-24.0.2+12 (build 24.0.2+12, mixed mode, sharing)
@justinvo
- The missing chart line after
Presentation.save is not expected behavior (see bot reply #2).
- You are on Aspose.Slides Java 25.11; no newer release is currently listed in the forum thread.
- The same loss occurs when exporting to PDF, confirming the issue is in the serialization of the chart data.
Next steps to isolate and resolve the defect
-
Provide the source presentation
The import.pptx inside the import.zip is required to reproduce the problem on our side. Since direct upload is blocked, please share the file via a public link (e.g., Google Drive, Dropbox, WeTransfer) and post the link in the thread.
-
Confirm the exact build you are using
- Verify the JAR file name and checksum (e.g.,
aspose-slides-25.11.jar SHA‑256).
- Ensure the license file is applied (if using a paid license) – a missing/invalid license can affect chart rendering.
-
Run a minimal repro
Use the snippet you posted unchanged, but add explicit pres.save(exportPath, SaveFormat.Pptx); without the try‑catch wrapper to surface any hidden exceptions. Capture any console output or stack trace.
-
Optional sanity check
If you can obtain a pre‑release/nightly build (e.g., 25.12‑beta) from the Aspose Maven repository, test the same file there. If the issue disappears, it indicates the defect has already been fixed in a newer build.
What we will do
- Once the presentation file and build details are received, we will log an internal issue and run the repro on our test matrix (OpenJDK 24, Ubuntu 22).
- If the defect is confirmed, we will provide an ETA for a fix or a temporary workaround (e.g., re‑creating the chart series programmatically before saving).
Please post the file link and the requested details so we can proceed.
@justinvo,
Thank you for reporting the issue. I have reproduced the problem where the top-most charts are missing the green data line when loading the presentation and saving it to a PPTX/PDF 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-39757
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.