Upper Case Text appears in Sentence Case in Chart's PDF

Hello,

I am using Aspose.Cells v8.7.0.4 to generate PDF of chart - Chart 1 in the attached excel file. In the PDF output, the Upper Case Text gets converted to Sentence Case.

Following code is used to generate the output:

void chartToPDF() throws Exception {
Workbook workbook = new Workbook("leter case issue.xlsx");
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = "Sheet1";
Chart chart = ws.get(worksheetName).getCharts().get("Chart 1");
chart.toPdf("D:\\aspose_generated_chart1_8.7.0.4.pdf");
}

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

Can you please analyse this issue.

Thanks,
Neha

Hi,


Thanks for the sample files, sample code and screenshot.

After an initial test, I observed the issue as you mentioned. I found that Upper-case horizontal/vertical axis title text appears in sentence case in Chart’s PDF format as per your screenshot (attached). I used the following sample code with your template file:
e.g
Sample code:

Workbook workbook = new Workbook(“leter+case+issue.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();

String worksheetName = “Sheet1”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);
chart.toPdf(“out1.pdf”);

I have logged a ticket with an id “CELLSJAVA-41751” 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 try the new fix for cap title issue.

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

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


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