Blank output is generated when taking PDF/PNG output of surface chart

Hello,


I am using Aspose.Cells v17.5.5 to generated PDF/PNG of chart - ‘Chart 1’ in the attached excel file. In case of PDF, blank output is generated and in case of PNG, a PNG of zero bytes is generated.

Following code is used to generate the PDF:
Workbook workbook = new Workbook(“test.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Sheet1”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);
chart.toPdf(“aspose response.pdf”);

Following code is used to generate the PNG:
Workbook workbook = new Workbook(“test.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Sheet1”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.setImageFormat(ImageFormat.getPng());
chart.toImage(“aspose response.png”, imgOptions);

Can you please analyze this issue.

Thanks,
Neha

Hi,


Thanks for your posting and using Aspose.Cells.

We are afraid, Surface Chart is not supported by Aspose.Cells. We have already logged request for its implementation in our future releases but we are afraid, at the moment, we cannot implement it, because it is too complex for us. So, there are no plans for its implementation in near future.

The support for Surface Chart has already been logged as

  • CELLSJAVA-40316 - Support for Surface Chart
  • CELLSNET-40830 - Rendering of Surface Chart