Excel chart's background color is missing from its PDF output

Hello,

I am using Aspose.Cells v19.5 to generate PDF of chart - “Chart4” in the attached excel file. The chart’s blue background color is missing in the PDF output because of which a lot of the chart’s content is invisible.

Following code is used to generate the output:

Workbook workbook = new Workbook(“test.xlsb”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Chart4”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart4”);
chart.toPdf(“aspose response 19.5.pdf”);

PFA below the source excel and PDF output:
attachments.zip (245.8 KB)

Can you please look into this.

Thanks,
Neha

@Neha_Gautam,

Thanks for the template file, sample code, screenshot and output PDF.

Well, it is not an issue with the product. The blue background color shading is actually sheet’s background set which is not displayed/visible when you take the print preview of the sheet in Ms Excel, see the screenshot for your reference:

For your information, Aspose.Cells renders the sheet to PDF as what is shown when taking the print preview of the sheet (in MS Excel), so it is not an issue.