Free Support Forum - aspose.com

IsKeptTogether

I have several paragraphs and/or tables that I would like kept together on a page.

I tried



{several paragraphs}



but it didn’t work.

Is there any way to achieve this functionality? It works great for a single table or paragraph, but I can’t seem to get it to span paragraphs or tables.

I really need this functionality.

Thanks.

- Milt

Dear Milt,

Thank you for considering Aspose.Pdf.

IsKeptTogether is only work for a single paragraph. Keeping several paragraphs together is not supported in the current version. We will consider adding support for this in newer version. As a work around, please try create a table with one cell and put the paragraphs into the table and set the Table.IsBroken=false.