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

Free Support Forum - aspose.com

Chart's PDF output is incorrect

Hello,


I am using Aspose.Cells v17.5 to generate PDF of chart - “Chart 1” in the attached excel file. The position of chart-area is incorrect in the PDF output, and the structure of chart has changed. Same issue is there in PNG output too.

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(“D:\aspose generated.pdf”);

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

Can you please look into this issue.


Thanks,
Neha

Hi,


Thanks for your posting and using Aspose.Cells.

We were able to observe this issue as per your description and screenshot with the most recent version of Aspose.Cells.

We have logged this issue in our database for product team investigation and for a fix. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-42297 - Chart to Pdf - Chart image is incorrect

Hi,

Thanks for using Aspose.Cells.

We are afraid, Aspose.Cells cannot do same as MS-Excel now. The chart has "Perspective" property that is not supported.

Our output image is same as the chart when you remove the "Perspective"(i.e. Right-click the chart-->3D-Roatation-->Check "Right Angle Axes")