Nested lists get inherit Bold style

Word to html generates bold style for nested lists.


This is our code:

   String convertedHtml = null;
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try {
Document doc = new Document(is);
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.HTML);
options.setExportHeadersFootersMode(ExportHeadersFootersMode.NONE);

options.setExportImagesAsBase64(true);
doc.joinRunsWithSameFormatting();
doc.save(outputStream, options);
convertedHtml = outputStream.toString("UTF-8");

} catch (Exception e) {
log.error("Error while converting byte array to HTML.", e);
} finally {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
try {
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return convertedHtml;
}
Hi Milan,

Thanks for your inquiry. Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

Tahir,


This is fixed with update of Aspose.Words to the latest version.

Thank you for your response.

We can close the ticket.

Milan
Hi Milan,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.