We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Legends are cut in Chart's PDF


I am using Aspose.Cells v8.7.1.4 to generate PDF of chart - Chart 1 in the attached excel file. In the PDF output, the last legend is cut. The legend should appear properly.

Following code is used to generate the output:

Workbook workbook = new Workbook("test.xlsm");
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = "Charts";
Chart chart = ws.get(worksheetName).getCharts().get("Chart 1");

I have attached Excel generated Pdf and Aspose generated Pdf along with a screenshot comparing both.

Can you please analyse this issue.


Hi Neha,

Thank you for sharing the sample spreadsheet.

We have evaluated the presented scenario while using the latest version of Aspose.Cells for Java, and we are able to replicate the said issue on our side. This incident has been logged as CELLSJAVA-41798 in our bug tracking system. Please spare us little time to properly analyze the scenario and get back with updates in this regard.


Thanks for your using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for Java v8.7.2.5 and let us know your feedback.

The issues you have found earlier (filed as CELLSJAVA-41798) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.