Hi, I am using Aspose.Words for .NET 21.11.0 to convert Word files to HTML. For nested ordered lists like
1. Level
1.1. Level 2
1.2. Level 2
it SOMETIMES only converts to
1. Level
1. Level 2
2. Level 2
To make it work, aspose uses CSS style tags with counters.
But I do not understand why this sometimes works and sometimes not. Attached 2 files with 2 examples, one is OK, one is not OK.
Any help is appreciated, thanks!
lists.zip (70,8 KB)
These are the save options I use:
HtmlSaveOptions options = new HtmlSaveOptions();
options.ExportRoundtripInformation = false;
options.UseHighQualityRendering = true;
options.SaveFormat = SaveFormat.Html;
options.PrettyFormat = true;
options.TableWidthOutputMode = HtmlElementSizeOutputMode.All;
options.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
options.ExportImagesAsBase64 = true;
options.ExportListLabels = ExportListLabels.ByHtmlTags;
options.ExportTextInputFormFieldAsText = true;
options.ExportDropDownFormFieldAsText = true;