This example sets the second table can span pages.
TextTables tables = document.getTables(); TextTable table = tables.item(2); table.setAllowPageBreak(true);
Related information
AllowPageBreak property