Aspose.Slides for Java Doesn't Create Doughnut Charts in PDF If the Charts Have Only Single Entity

Hi,

There is an issue in Aspose Slides when creating donut charts. Steps to reproduce:

  1. Create PPT with donut chart as given in the Aspose Dev notes : Doughnut Chart|Aspose.Slides Documentation

  2. Edit the donut chart to have only one series with 100% and save it
    Open PPT → Edit Data → Remove 3 random entries out of the 4 and save it.

  3. Read the updated PPT and save it in PDF format.

    //Sample code below:
    public void generatePptx(String fileName) {
		Presentation pres = new Presentation(fileName);
		try {
			// IChart chart =
			// pres.getSlides().get_Item(0).getShapes().addChart(ChartType.Doughnut, 50, 50,
			// 400, 400);

			// chart.getChartData().getSeriesGroups().get_Item(0).setDoughnutHoleSize((byte)
			// 60);

			// Write presentation to disk
			pres.save("src/main/resources/GENERATED_TEMPLATE.pdf", SaveFormat.Pdf);
		} finally {
			if (pres != null)
				pres.dispose();
		}
    }
  1. PDF is not generated properly - left top is cut.

image.png (14.6 KB)

@mvkishoresr,
Thank you for describing the issue. I’ve reproduced the problem with Doughnut charts when converting PowerPoint presentations to PDF documents. We are sorry that you have to encounter this problem.

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

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.

The issues you found earlier (filed as SLIDESJAVA-39540) have been fixed in Aspose.Slides for Java 24.10 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.