Free Support Forum - aspose.com

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.