Alignment of header not accurate in Chart's PDF

Hello,

I am using Aspose.Cells v8.6.2.1 to generate PDF of chart - Chart 1 in the attached excel file. In the PDF output, the header extends beyond the chart's border.

Following code is used to generate the output:

void chartToPDF() throws Exception {
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:\\test.pdf");
}

Can you please analyse this issue.

Thanks,
Neha

Hi,


Thanks for the template file and sample code.

After an initial test, I observed the issue as you mentioned by converting the chart in the template file to PDF file format. I found that Alignment of header is not accurate in Chart to PDF rendering as per his attached screen shot.
e.g
Sample code:

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:\test.pdf”);

I have logged a ticket with an id “CELLSJAVA-41628” for your issue. We will look into it soon.

Once we have any update on it, we will let you know here.

Thank you.

Hi,

Thanks for using Aspose.Cells.

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

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


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