This example adds a table with 3 rows and 3 columns at the end of the document.
TextTable table = document.getTables().add(document.getContent().getEnd(), 3, 3);
Related information
End property