Snippets

Prevent break tables using addTable

In order to prevent a table to be split in several pages it is required to apply the keepLines and keepNext styles to all of its contents. This code works unless the table occupies more space than a full page.

It is also possible to use custom styles.