Text placement shifted to the left when saving as HTML

Hi,

Using Aspose Cells for Java, version 21.2.

Sample code:

Workbook workbook = new Workbook("input.xlsx");

WorksheetCollection worksheets = workbook.getWorksheets();
Worksheet worksheet = worksheets.get("Introduction");
worksheets.setActiveSheetIndex(worksheet.getIndex());

HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.HTML);
saveOptions.setExportActiveWorksheetOnly(true);
saveOptions.setExportImagesAsBase64(true);

workbook.save("output.html", saveOptions);

I have included the output HTML produced by Aspose Cells 21.2. Here you will see that the text “Introduction” has been shifted to the left, partially leaving the viewport.

In addition, I have included the output HTML produced by Aspose Cells 20.8. Here you will see that the text is much closed to where it is expected to be, based on the Excel input .XLSX file.

shift.zip (172.6 KB)

Kind regards,
Taras

@TarasTielkes,
This issue is reproduced and logged in our database under Id:CELLSJAVA-43403. We will notify you here once any update is ready for sharing.

@TarasTielkes,

This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@TarasTielkes,
Please try our latest version/fix: Aspose.Cells for Java v21.3.3:

aspose-cells-21.3.3-java.zip (7.2 MB)

Your issue should be fixed in it.
Let us know your feedback.

Hi @John.He,

The issue looks to be resolved in 21.3.3 indeed.

Thank you,
Taras

@TarasTielkes,

Good to know that your issue is resolved by the new fix. Feel free to contact us any time if you need further help or have some other queries or issue, we will be happy to assist you soon.

The issues you have found earlier (filed as CELLSJAVA-43403) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi