Is there a way to split a table in this way to keep the applied styles and so that adding a row in the first part of the table directly affects the second part of the table? I would be interested in the method presented below:
Document doc = new Document();
final DocumentBuilder documentBuilder = new DocumentBuilder(doc);
final Table table = documentBuilder.startTable();
/* create some columns and rows */
// table.splitAfterRow(3); <----
documentBuilder.endTable()
In the attachment, I am sending you a sample document. When you add a row in the first part of the table, the numbering of the second part automatically changes. expected_table_behavior.zip (12.7 KB)
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.