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

Free Support Forum - aspose.com

Underline Chart Title Not Converting to PDF

Hello,


I’m using Aspose.cells 8.3.0 for java and am having an issue where I convert an excel document generated by Aspose to PDF (just saving as PDF) and the underlined chart titles do not get converted. Below is the code sample, and I have attached the resulting xlsx and pdf output:

package com.my.test;

import com.aspose.cells.Chart;
import com.aspose.cells.ChartCollection;
import com.aspose.cells.ChartType;
import com.aspose.cells.FontUnderlineType;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import org.junit.Test;

public class TestChartTitle {

public void test_chart_title() throws Exception {
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.getWorksheets().get(0);

worksheet.getCells().get(0,0).putValue(“Blue”);
worksheet.getCells().get(1,0).putValue(“Red”);
worksheet.getCells().get(2,0).putValue(“Green”);

worksheet.getCells().get(0,1).putValue(55);
worksheet.getCells().get(1,1).putValue(35);
worksheet.getCells().get(2,1).putValue(10);

ChartCollection charts = worksheet.getCharts();
int chartIndex = charts.add(ChartType.PIE, 10, 0, 20, 5);
Chart chart = charts.get(chartIndex);
chart.getTitle().setText(“My Chart”);
chart.getTitle().getFont().setUnderline(FontUnderlineType.SINGLE);

int seriesNumber = chart.getNSeries().add(“B1:B3”, true);

workbook.save(“C:\temp\chart_test_excel.xlsx”);
workbook.save(“C:\temp\chart_test_pdf.pdf”);
}

}

Hi Vinny,

Thanks for your posting and using Aspose.Cells.

We were able to observe this issue after exectuing your sample code with the latest version: Aspose.Cells
for Java v8.3.0.3
. Chart Title with Underline is not converting to PDF.

We have logged this issue in our database for investigation. We will look into it and fix this issue. 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-41117 - Chart Title with Underline is not converting to PDF

Hi,

Thanks for your using Aspose.Cells.

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

Hi Shakeel,


Thanks for your quick response! This version has just what we need. Your group is always quick to come to our aid and respond to any issues we have with the product, it’s fantastic. MUCH appreciated.

Hi Vinny,

Thanks for your feedhack and using Aspose.Cells.

It is good to know that your issue is fixed with the latest version. Let us know if you encounter any other issue, we will be glad to look into it and help you further.

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


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

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan