Multilevel list style is incorrect converting from HTML to PDF. The problem is that the third level numbering is continuing from where it left of at last level. This is only happening when converting to PDF using Spire.Doc whereas conversion to word is maintaining the integrity of the list level defined.
Attaching code and extracted word and PDF and screenshot showing the difference in output of word and PDF.
Program.cs
- Code: Select all
namespace ExportDocSpire
{
class Program
{
static void Main(string[] args)
{
try
{
Export export = new Export();
export.ExportDoc();
Console.ReadKey();
}
catch (Exception ex)
{
Console.WriteLine($"{ex.Message} Cannot continue further.");
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
}
Please note that I am using a licensed Spire doc v 10.9.1