Nested ordered lists numbered incorrectly when converting to PDF

Aspose.PDF for .NET does not seem to track the previous number correctly when converting a nested ordered list from HTML to PDF. My HTML uses ol and li tags to display the following:

A. Topic A
B. Topic B

  1. Subtopic 1
  2. Subtopic 2
  3. Subtopic 3
    a. Detail a
    b. Detail b
  4. Subtopic 4

When converted to PDF (whole-file conversion), Subtopic 4 has the correct text, but is numbered 3. So, topic B has two subtopic 3 items:

A. Topic A
B. Topic B

  1. Subtopic 1
  2. Subtopic 2
  3. Subtopic 3
    a. Detail a
    b. Detail b
    3. Subtopic 4

(it maintains the correct indentation in the PDF, but I can’t highlight the last line without it displaying as indented)

Each list item has a style definition:
Topic tags: list-style-type: upper-alpha
Subtopic tags: list-style-type: decimal
Detail tags: list-style-type: lower-alpha

As far as I can see, the ol and li tags are nested correctly. If the converter somehow lost track of the nesting, it seems like it would start over, with Subtopic 4 having a 1., not a 3.

The html file displays correctly in Chrome, Edge, and Duck Duck Go, with Subtopic 4 having a number 4. Only the Aspose PDF converter seems to have an issue assigning Subtopic 4 the correct number.

@fishg92
Hi
Could you provide a code and sample that would help to recreate the issue, please?

I shared the samples that you requested via an email reply. I don’t see a way to upload files directly to the support site.

I have discovered another issue as well. Word wrap does not seem to be working. Any browser will wrap HTML text automatically, but when I use Aspose.PDF it creates a PDF document with long paragraphs shown as a single line, making the document ridiculously wide.

@fishg92
I haven’t received the samples
Could you share them to this address please?
ilya.zhuykov@aspose.com
in order to attach file to the message you can use the following option
screensht.png (3.2 KB)

I’ll investigate the second described issue as soon as you will provide the samples

@fishg92
Thank you, I’ve received the samples, I’ll investigate the issue and write you back as soon as possible

@fishg92
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-63138

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

I’ve reproduced the issue. It’s still present so I passed it to developers to address