Summary
Stacked Area Charts (ChartType 48) in PowerPoint presentations don’t render axis labels and legends when converted to PDF using Aspose.Slides 26.2, even though regular Area charts work correctly.
Environment
- Aspose.Slides Version: 26.2 (Java)
- Java Version: 17
- Operating System: Windows/Linux
- License: Full commercial license (Aspose.Total)
Problem Description
When converting PowerPoint presentations containing Stacked Area Charts to PDF, the chart data areas render correctly but axis labels (X-axis, Y-axis) and legends are completely missing from the PDF output. The text data is present in the PDF (confirmed via text extraction), but it doesn’t render visually.
Regular Area charts (ChartType 47) in the same presentation convert perfectly with all labels visible.
Steps to Reproduce
-
Load the attached PowerPoint file
advanced-charts-test.pptx
advanced-charts-test.zip (30.9 KB) -
Convert to PDF using standard conversion:
Presentation presentation = new Presentation("advanced-charts-test.pptx");
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setCompliance(PdfCompliance.Pdf17);
pdfOptions.setSufficientResolution(300f);
presentation.save("output.pdf", SaveFormat.Pdf, pdfOptions);
presentation.dispose();
- Open the generated PDF and navigate to slide 5 (Stacked Area Chart)
Expected Behavior
The Stacked Area Chart should display:
- Y-axis labels: 0, 10, 20, 30, 40, 50, 60, 70
- X-axis labels: 2020, 2021, 2022, 2023, 2024, 2025
- Legend: North America, Europe, Asia Pacific, Latin America, Other Regions
Actual Behavior
The chart data areas (colored regions) render correctly, but all axis labels and the legend are invisible in the PDF. Text extraction confirms the label text is present in the PDF data but not rendering visually.
Comparison
- Slide 4 (Area Chart - Type 47): ✓ Works perfectly - all labels visible
- Slide 5 (Stacked Area Chart - Type 48): ✗ Labels missing
Chart Analysis
Chart inspection reveals:
- Chart Type: 48 (StackedArea)
- Y-axis visible: true
- X-axis visible: true
- Legend visible: true
- Legend position/size: NaN values
- Plot area position/size: NaN values
- All data series and categories are present
Note: The working Area chart (slide 4) also has NaN geometry values, so this is not unique to the broken chart.
Attempted Workarounds
We tried the following workarounds, none of which fixed the issue:
pdfOptions.setEmbedFullFonts(true)- No effectchart.validateChartLayout()- NaN values persistchart.getImage()- Doesn’t fix geometry- Removing LoadOptions - No effect
- Various font substitution settings - No effect
Files Attached
advanced-charts-test.pptx- Source PowerPoint filePEX-15876-slide5.png- Screenshot comparing PDF (left) vs PowerPoint (right)output.pdf- Generated PDF showing the issue
Impact
This affects any PowerPoint presentations with Stacked Area charts, making them unusable in PDF output as critical chart information (axis labels, legends) is missing.
Request
Please investigate and provide:
- Confirmation of the bug
- Expected fix timeline or version
- Any available workaround we can implement in our code
Additional Information
We are using Aspose.Slides as part of a document conversion service processing customer PowerPoint files. This issue was discovered during testing with various chart types.
Thank you for your assistance!