Example: Content property

This example adds a table with 3 rows and 3 columns at the end of the document.

  Document document = documents.openDocument("D:\\test.odt", true);
  TextTable table = document.getTables().add(document.getContent().getEnd(), 3, 3);

Related information

Content property