Child Bullets Is Not Getting Print while HTML Text to Rich Text Conversion in Slide

Hello,
I am just trying to convert HTML text to Rich text using addHtmlForm function and printing in to PPT slide, and its working as expected.
However here the concern is the HTML text contains Parent bullets followed by child and sub child bullets (added sample below), and while converting its printing all the contents in parent bullets only.
Input as HTML:

  • Parent bullets 1
    • Child Bullets 1
      • Sub child bullets 1
  • Parent bullets 2
    • Child Bullets 2
      • Sub child bullets 2
  • Parent bullets 3
    • Child Bullets 3
      • Sub child bullets 3

Output :
• Parent bullets 1
• Child Bullets 1
• Sub child bullets 1
• Parent bullets 2
• Child Bullets 2
• Sub child bullets 2
• Parent bullets 3
• Child Bullets 3
• Sub child bullets 3

Which is wrong, it should convert and print as per motioned in input.

FYI.
OS - Windows 10
Aspose version - 22.7

Could you please help us to overcome this issue.
Quick suggestions will be greatly appreciated.
Thanks.

@ajaymoharana,
Thank you for contacting support.

Please share the sample HTML document to reproduce the problem on our end.

Hi @andrey.potapov

Thanks for the quick response :slight_smile:
Please find below sample HTML tag

<P>Bullet point Testing:</p><ul><li>Test 1</li><li class=”q1-indent-1”>Sub test 1</li><li>Test 2</li><li class=”q1-indent-1”>Sub test 2</li><li>Test 3</li></ul>

Please let me know if you required any other details.HTML_sample.docx (13.3 KB)

Thanks,

@ajaymoharana,
Thank you for the sample HTML string. Please note that the HTML string does not contain a definition of the q1-indent-1 class that formats child items. Therefore, it is not known how the child elements of the list should be formatted.

Hi @andrey.potapov

Thanks for the response.
It would be really appreciate if you could let us know the alternative of this, so that we can achieve the output, As this q1-indent-1 we are getting while converting Rich text to HTML.

Thanks.

@ajaymoharana,
I am working on the issue and will get back to you as soon as possible.

@ajaymoharana,
To import the list to a PowerPoint presentation properly, you should use a multi-level list like this:

<p>Bullet point Testing:</p>
<ul>
    <li>Test 1</li>
    <ul>
        <li>Sub test 1</li>
    </ul>
    <li>Test 2</li>
    <ul>
        <li>Sub test 2</li>
    </ul>
    <li>Test 3</li>
</ul>

or add the q1-indent-1 class to the HTML string like this:

<html>
    <head>
        <title>Test</title>
        <style>
            .q1-indent-1 {
                <!-- add your styles here -->
            }
        </style>
    </head>
    <body>
        <p>Bullet point Testing:</p>
        <ul>
            <li>Test 1</li>
            <li class="q1-indent-1">Sub test 1</li>
            <li>Test 2</li>
            <li class="q1-indent-1">Sub test 2</li>
            <li>Test 3</li>
        </ul>
    </body>
</html>

Hi @andrey.potapov

Thanks for the response.
Let me use as per your suggestion, will let you know if it is feasible as we have huge HTML data which we are converting to rich text. and the style classes are the custom classes. So we need to see how we can replace that and proceed further.

Thanks for your support :slight_smile:

@ajaymoharana,
Thank you for using Aspose.Slides. We will be waiting for your feedback.