�IsKeptTogether� property under �Paragraph� class is not working for table

Hi,

We are generating a pdf report using aspose.pdf. We have several tables (one table in one paragraph) on that report. So we are using “IsKeptTogether” property under “Paragraph” class to keep the respective table in one page. It should not split between two pages. But it is not working in our case. The following is our code:

Text data = new Text(sbHtml.ToString());
data.ID = "regulatoryissues";
data.IsHtmlTagSupported = true;
data.IsKeptTogether = true;
section.Paragraphs.Add(data);
section.Paragraphs["regulatoryissues"].IsKeptTogether = true;

Could you please suggest any other way? Could you please suggest any other way?

Regards,

Surya

Hello Surya,

Thanks for your interest in our products.

We have a property named IsFitToPage in Table class which indicates whether the table need to be placed on single page. Default value is
false.The attribute is only valid when the table is the first paragraph on a
page. The height of the rows is automatically adjusted if table height increases from page height.

Besides this, we have another property named IsBroken in Table class which indicates whether the table is allowed to be broken or not when crossing
pages. If this property is set to True, table will automatically be broken when its height increases from page height.

In the event of any further query, please feel free to contact. We apologize for your inconvenience.