Turn methods into "add()"

This commit is contained in:
Dolan
2019-06-25 23:17:56 +01:00
parent 3ef8f5311d
commit e2574ec23b
55 changed files with 253 additions and 262 deletions

View File

@ -10,12 +10,12 @@ const table = new Table({
rows: 2,
columns: 2,
});
table.getCell(1, 1).addParagraph(new Paragraph(image));
table.getCell(1, 1).add(new Paragraph(image));
doc.addTable(table);
doc.add(table);
// doc.Header.createImage(fs.readFileSync("./demo/images/pizza.gif"));
doc.Header.addTable(table);
doc.Header.add(table);
// doc.Footer.createImage(fs.readFileSync("./demo/images/pizza.gif"));
const packer = new Packer();