I have a simple Word dcoument that contains two ordered lists (whch were added as HTML altchunks). Each of these lists contains two list items, numbered 1. and 2. respectively.
When converting this Word document to PDF, the PDF ends up containing the wrong numbers in the second list. Instead of being numbered 1. and 2., the items in the second list are numbered 3. and 4.
It appears that Aspose Words is not resetting the number to 1 when it encounters a new ordered list. Instead, it seems to just continue the sequence of numbers as if the list items (across both lists) are all part of one big list.
Just for reference, below is the actual HTML that was embedded into the Word document for each of the two ordered lists.
@pkozul I was managed to reproduce your issue on my side. I have logged it as WORDSNET- 23604 in our defect tracking system. We will keep you informed and let you know once it is resolved.
Just wanted to add some more information, after doing some more tests. It appears that all lists in the document (whether they are <ul> or <ol>) seem to base themselves on the very first list.
For example, if the document contains a bulleted list (<ul>), and then an ordered list (<ol>) below it, then when coverting to PDF, the second list ends up also being a bulleted list.
And the same in revese. If the document contains an ordered list (<ol>), and then a bulleted list (<ul>) below it, then when coverting to PDF, the second list ends up also being an ordered list, and its numbers continue on from the sequence of numbers in the first list.
@pkozul Could you please attach the sample documents that demonstrates the behavior you have described in your last post, to make sure we tested your scenario properly?
Attached are the files (Word dcoument, and converted PDF file).
You can see the Word document contains a numbered list, followed by a bulleted list.
In the converted PDF file, the first list is correct (items numbered 1. and 2.) but the second list does not contain bulleted items (instead, the items are actually numbered 3. and 4.)
When converting to PDF, the ordered list in the third row ends up with items being numbered 3. and 4. instead of starting at 1. and 2.
One interesting thing I have observed is that removing the second altchunk results in the second numbered list ended up with the correct numbers, so it looks like the Aspose conversion to PDF doesn’t handle HTML list-based altchunks that are separated by simple paragraph-based HTML altchunks.
Attached is the Word document, along with the converted PDF document.
@pkozul Thank you for additional information. I have managed to reproduce the problem on my side. For a sake of correction it has been logged as WORDSNET-23844. We will let you know once it is resolved or we have additional information for you.