When converting the table into an image, it does not display correctly

When converting the HTML table into an image, the content in the last few columns does not display correctly.
The current conversion result is 1.png, and I want to achieve a result of 2.png
2024122319.zip (8.2 KB)

@hlgao
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): WORDSNET-27703

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.

@alexey.noskov
I found if use

doc.updateTableLayout();

At this point, the image converted from the table is normal, but in the document, it indicates that the method updateTableLayout() is deprecated. What function replaces this method?

updateTableLayout()
public void updateTableLayout()
Implements an earlier approach to table column widths re-calculation that has known issues.

Remarks:

The method is deprecated and it will be removed in a few releases.

Thanks

@hlgao There is no replacement of this method. UpdateTableLayout method was the first attempt of table grid calculation algorithm implementation. Currently another implementation is used internally by Aspose.Words, so normally there is no need to call additional methods to calculate table layout.
In your particular case, however, the new algorithm does not give an accurate result.

A post was split to a new topic: Table layout is broken after rendering