UpdateTableLayout before UpdatePageLayout

Hi,
Since 22.8 UpdateTableLayout method was marked as obsolete, because it is done when saving anyway. However, I’ve ran into a case where the UpdateTableLayout is still necessary. If you run the example attached here, you’ll notice that if UpdateTableLayout is called before UpdatePageLayout the cell(the one with “Credit note” text) width in the output PDF document is different(and this is the correct width) than if we just call UpdatePageLayout by itself(and here the cell is smaller than in the original word document). You may also notice a number of different issues that made the saved PDF document look very different from it’s original docx version, but in this topic I’m asking specifically about the obsolete method. Should it be not marked as obsolete? or should UpdatePageLayout work differently?

TableExample.zip (222.8 KB)

Thanks,
Bartosz

@acturisaspose 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 the new algorithm works not perfect.

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-25171

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.

FYI @eduardo.canal

Hi,

Just to make absolutely sure - could you please confirm that the method marked as obsolete won’t be removed until our issue with the new method is resolved?

@acturisaspose For now UpdateTableLayout method will be kept, but you should be careful while using this method, because sometimes it make more harm then good.

The issues you have found earlier (filed as WORDSNET-25171) have been fixed in this Aspose.Words for .NET 23.10 update also available on NuGet.