import com.aspose.words.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        License pdfLicense = new License();
        pdfLicense.setLicense("license.lic");

        Document wordDoc = new Document();

        Table table = new Table(wordDoc);
        table.ensureMinimum();

        Row row = new Row(wordDoc);
        table.appendChild(row);

        Cell cell = new Cell(wordDoc);
        row.appendChild(cell);

        wordDoc.startTrackRevisions("The developer", new Date());

        Paragraph paragraph = new Paragraph(wordDoc);
        paragraph.appendChild(new Run(wordDoc, "Sample text in the table cell."));
        cell.appendChild(paragraph);

        wordDoc.getFirstSection().getBody().appendChild(table);

        String outputFilePath = "SimpleTableDocument.docx";
        wordDoc.save(outputFilePath);
    }
}