We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HTML to PDF - Unenclosed <li>

When generating a PDF using some HTML, I am getting a corrupt document.

Here is the HTML of the test page that is failing:

Testing the List tags
  1. Ordered List 1
  2. No wrap 1

  3. Here is the C#:
    Pdf pdf1 = new Pdf();
    Section sec2 = new Section(pdf1);
    pdf1.Sections.Add(sec2);
    string str = "Testing the List tags
    1. Ordered List 1
  4. No wrap 1
  5. ";
    Text text = new Text( str);
    text.IsHtmlTagSupported = true;
    sec2.Paragraphs.Add(text);


    This seems to fail because the
  6. No wrap 1
  7. does not have an enclosing wrapping (
      or
      ) around it. However, having just
    1. in html does work and renders just fine in the browsers I've tested. I would like to continue having
    2. without the need to enclose them in a wrapping tag as this is how many users may input their data which I will be reading from.


    Edit: Fixed a typo

    Hi Philip,

    Thank you for reporting this issue to us. I managed to reproduce this issue on my side. For the sake of correction, I have logged this issue as PDFNEWNET-33825 in our bug tracking system. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved.

    We apologize for your inconvenience.

    Thanks & Regards,

    The issues you have found earlier (filed as PDFNEWNET-33825) have been fixed in Aspose.Pdf for .NET 7.7.0.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.

    The issues you have found earlier (filed as PDFNEWNET-33825) have been fixed in Aspose.Pdf for .NET 7.7.0.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
    (5)