Using Aspose Cells for Java, version 21.2.
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
shift.zip (172.6 KB)