InvalidOperationException when converting HTML to PDF with empty table

Hello,

When I convert this HTML with an empty table to PDF using Aspose HTML Java 24.5, I get this error:

Caused by: class com.aspose.html.utils.ms.System.InvalidOperationException: Enumeration has either not started or has already finished.

The HTML is very simple:

<html>
  <body>
    <table></table>
  </body>
</html>

Here is the code in Java:

HTMLDocument doc = new HTMLDocument("c:\\tmp\\originalFile.html");
PdfSaveOptions options = new PdfSaveOptions();
Converter.convertHTML(doc, options, "c:\\tmp\\originalFile.pdf");

@igor.rogov

Can you please share your environment details like OS Name and Version and JDK version as well? We will further proceed to assist you accordingly.

Hello,

It’s windows 11 and Java 17.

@igor.rogov

We have opened 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): HTMLJAVA-1767

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.