Need to provide page breaks in internal PdfPTable iTextSharp

I am printing an html string in pdf using iTextSharp. I have a hierarchy of nested tables. I need an internal table that needs to be split if it is not suitable for the current page and starts printing on a new page.

I put

KeepTogether = true;
SplitLate = false;
LockedWidth = true;

For all tables intended for both parent and all child tables.

But in my case, the internal table does not break.

Here is the image. enter image description here

I am adding the main parent table to document.add (parentTable).

I checked that if I separate the child table from the parent table and add it to the document directly, its page splitting is needed sometime.

But for a nested table, this is not interrupted.

Can you help me?

thank

+2

Source: https://habr.com/ru/post/1769186/


All Articles