Hi Aspose team,
Hope you are doing fine!
I am trying to convert word to html with latest Aspose.word library i.e. Aspose.Words_20.4 (.Net). I have written the following code for conversion
int joinCount = doc.JoinRunsWithSameFormatting();
HtmlSaveOptions options = new HtmlSaveOptions();
options.ExportRoundtripInformation = false;
options.UseHighQualityRendering = true;
options.SaveFormat = SaveFormat.Html;
options.PrettyFormat = true;
options.TableWidthOutputMode = HtmlElementSizeOutputMode.RelativeOnly;
options.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
options.ExportImagesAsBase64 = true;
options.ExportListLabels = ExportListLabels.ByHtmlTags;
doc.Save(Path.Combine(drivePath, Path.Combine("test.html", options);
However, after the conversion I am getting the following html as can be seen in attached image (this is just an example, there are many such cases in the whole converted HTML).
image.png (2.6 KB)
Here you can see that too many span attributes are generated even with the same format properties. As you can see that I am using the JoinRunsWithSameFormatting function as well before saving but it seems that it does make any difference. Can you please guide me here that I get the HTML with less span attributes i.e. span attributes which are having the same properties are combined? Thanks!
Regards,
Zeeshan