10/24/2017 - 1:09 PM

// For complete examples and data files, please go to
// Set table column names to be extracted from the document.
DocumentTableOptions options = new DocumentTableOptions();
DocumentTable table = new DocumentTable(CommonUtilities.wordDataFile +"/Managers Data.docx", 1, options);
// NOTE: For non-Spreadsheet documents, the type of a document table column is always string by default.
assert table.getColumns().get("Total_Contract_Price").getType() == String.class;
// Change the column's type to double thus enabling to use arithmetic operations on values of the column
// such as summing in templates.
// Pass DocumentTable as a data source.
DocumentAssembler assembler = new DocumentAssembler();
assembler.assembleDocument(CommonUtilities.getDataPath(doc), CommonUtilities.getOutPath("/Presentation Reports/out.pptx"), table, "Managers");