GroupDocs.Assembly for Python via .NET API provides the ability to load multiple DocumentTable objects from a single file as a single operation. Following classes and interfaces of the GroupDocs.Assembly.Data namespace have been added:
fromgroupdocs.assemblyimportDataSourceInfo,DocumentAssemblerfromgroupdocs.assembly.dataimportDocumentTableOptions,DocumentTableSetdefload_table(args):# The first row of every table holds its column namesoptions=DocumentTableOptions()options.first_row_contains_column_names=Trueargs.options=optionstables=DocumentTableSet("multiple-tables.docx",load_table)tables.tables[0].name="Planets"tables.tables[1].name="Persons"tables.tables[2].name="Companies"assembler=DocumentAssembler()assembler.assemble_document("several-tables.pptx","several-tables-report.pptx",DataSourceInfo(tables))