Table-Layout:fixed causes ArgumentException: Invalid operation

A table with both width and height styles set to a percentage will cause the converter to crash if the table also has table-layout set to fixed.

This code can be used to recreate the issue:

    private static void InvalidOperation()
    {
        const string html = "<html><body><table style='height:80%;width:80%;table-layout:fixed'><tr><td>Invalid Operation Test</td></tr></table></body></html>";

        using (var document = new Aspose.Html.HTMLDocument(html, "."))
            Aspose.Html.Converters.Converter.ConvertHTML(document, new PdfSaveOptions(), "out.pdf");
    }

@GrantWalker

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): HTMLNET-4788

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.

@GrantWalker

We have fixed a reported ArgumentException issue and fix will be available in 23.9 version of the API. But another layout issue is still present, namely, the box height calculation when height is specified as percentage, and it’s quite complex to fix. We described it in a new task HTMLNET-4829 and we’ll fix it in the future, when it is required.

1 Like

The issues you have found earlier (filed as HTMLNET-4788) have been fixed in this update. This message was posted using Bugs notification tool by avpavlysh

1 Like