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

Free Support Forum - aspose.com

How to find width of a table when column width is not set explicitly


Is there a way to find the width of table, if width of its content is not known in prior?

Please note:
> The property, ColumnWidths of this table is not set
> ColumnAdjustment is set to "AutoFitToContent"

Actual requirement:
Two or more elements (element can be Table / Image/ TextFragment) has to be placed side by side.
I am using Table as wrapper container for those elements. Width of this wrapper table is required to position the next element (set its “Left” property)

Attached image contains a sample layout of the PDF.
(This layout is not the actual template. The elements and its dimensions can be changed dynamically)

Hi Dhivya,

Thanks for your inquiry. I am afraid currently Aspose.Pdf does not support to calculate table width if it column width is not set explicitly. However I have logged a ticket PDFNET-40994 in our issue tracking system for the purpose. We will keep you updated about the issue resolution progress within this forum thread.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNET-40994) have been fixed in Aspose.Pdf for .NET 17.3.0.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.