OL/UL tags don't work with padding-left

HTML sample:

  1. test padding normal

    1. test padding 0px



    2. in browsers, the 2nd list has 0 padding and 0 margin but when converting using Aspose.PDF to PDF, the resulting PDF has both lists looking the same.

      Padding is not working on OL/UL tags.


      Hi Kuna,

      Thanks for contacting support.

      I have tested the scenario and I am unable to notice any issue. For your reference, I have also attached the output generated over my end. For your reference, I have also attached the output generated over my end. Can you please share some further details, so that we can again try replicating the issue in our environment.

      We are sorry for this inconvenience.

      [C#]

      Document doc = new
      Document(“c:/pdftest/Input.html”, new HtmlLoadOptions());
      doc.Save("c:/pdftest/Input_converted.pdf");
      
      When you view the HTML in a browser, you will notice that the 2nd list is rendered 10 p left of the first list (indentation as the padding-left: 0px removes the extra padding). In your attached PDF, there is no difference between both lists - both rendered with the same padding.

      List 1:
      1. test padding normal

      2. List 2:
        1. test padding 0px
        2. Hi Kuna,


          Thanks for sharing the details.

          I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFNEWNET-40805 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

          The issues you have found earlier (filed as PDFNET-40805) have been fixed in Aspose.PDF for .NET 25.9.