Mandatory Sections
This commit is contained in:
@ -10,10 +10,12 @@ const table = new Table({
|
||||
columns: 4,
|
||||
});
|
||||
|
||||
doc.add(table);
|
||||
|
||||
table.getCell(2, 2).add(new Paragraph("Hello"));
|
||||
|
||||
doc.addSection({
|
||||
children: [table],
|
||||
});
|
||||
|
||||
const packer = new Packer();
|
||||
|
||||
packer.toBuffer(doc).then((buffer) => {
|
||||
|
Reference in New Issue
Block a user