Fix demos
This commit is contained in:
@ -178,15 +178,17 @@ doc.addSection({
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
new Paragraph(
|
new Paragraph({
|
||||||
new ImageRun({
|
children: [
|
||||||
data: fs.readFileSync("./demo/images/pizza.gif"),
|
new ImageRun({
|
||||||
transformation: {
|
data: fs.readFileSync("./demo/images/pizza.gif"),
|
||||||
width: 100,
|
transformation: {
|
||||||
height: 100,
|
width: 100,
|
||||||
},
|
height: 100,
|
||||||
}),
|
},
|
||||||
),
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
new Paragraph({
|
new Paragraph({
|
||||||
text: "HEADING",
|
text: "HEADING",
|
||||||
heading: HeadingLevel.HEADING_1,
|
heading: HeadingLevel.HEADING_1,
|
||||||
@ -225,28 +227,32 @@ doc.addSection({
|
|||||||
style: "normalPara",
|
style: "normalPara",
|
||||||
}),
|
}),
|
||||||
table,
|
table,
|
||||||
new Paragraph(
|
new Paragraph({
|
||||||
new ImageRun({
|
children: [
|
||||||
data: fs.readFileSync("./demo/images/pizza.gif"),
|
new ImageRun({
|
||||||
transformation: {
|
data: fs.readFileSync("./demo/images/pizza.gif"),
|
||||||
width: 100,
|
transformation: {
|
||||||
height: 100,
|
width: 100,
|
||||||
},
|
height: 100,
|
||||||
}),
|
},
|
||||||
),
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
new Paragraph({
|
new Paragraph({
|
||||||
text: "Test",
|
text: "Test",
|
||||||
style: "normalPara2",
|
style: "normalPara2",
|
||||||
}),
|
}),
|
||||||
new Paragraph(
|
new Paragraph({
|
||||||
new ImageRun({
|
children: [
|
||||||
data: fs.readFileSync("./demo/images/pizza.gif"),
|
new ImageRun({
|
||||||
transformation: {
|
data: fs.readFileSync("./demo/images/pizza.gif"),
|
||||||
width: 100,
|
transformation: {
|
||||||
height: 100,
|
width: 100,
|
||||||
},
|
height: 100,
|
||||||
}),
|
},
|
||||||
),
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
new Paragraph({
|
new Paragraph({
|
||||||
text: "Test 2",
|
text: "Test 2",
|
||||||
style: "normalPara2",
|
style: "normalPara2",
|
||||||
|
Reference in New Issue
Block a user