Convert excel to html merge cell width become smaller

Hello,
when I convert excel to html, if I use cells-java-20.12, the merge cell D4 width become smaller, but in cells-java-8.8.2, it‘s same width as excel.
Hope the result is the same as 8.8.2
code show as below:

Workbook workbook = new Workbook("test-merge.xlsx");
WorksheetCollection worksheets = workbook.getWorksheets();
for (int sheetIndex = 0; sheetIndex < worksheets.getCount(); sheetIndex++) {
    Worksheet worksheet = worksheets.get(sheetIndex);
    Range maxDisplayRange = worksheet.getCells().getMaxDisplayRange();
    int maxDisplayRow = maxDisplayRange.getFirstRow() + maxDisplayRange.getRowCount();
    for (int i = 0; i < maxDisplayRow; i++) {
        worksheet.getCells().get(i, 0);
    }
 }
 workbook.save("test-merge.html");

result.zip (93.2 KB)

@xuerui,

Thanks for the template file and screenshots.

Could you please try our latest version/fix: Aspose.Cells for Java v22.6, it works fine as per MS Excel I tested. If you still find the issue with latest version/fix, let us know with output HTML and details, we will check it soon.

Thanks Amjad_Sahi,
I was using 20.12 version,is there some way to solve it?

@xuerui,

We are sorry but we cannot evaluate issue using older versions and cannot include fixes to older versions. We recommend to upgrade to and try your scenario/case using latest version of the API.