How can i set padding to a Paragraph?
jimmywong123 opened this issue · comments
Jimmy Wong commented
Jimmy Wong commented
here is what i do:
new Table({
rows: [
new TableRow({
children: [
new TableCell({
children: [
new Paragraph({
text: title,
style: 'bannerText',
})
],
shading: {
type: ShadingType.CLEAR,
color: "ffffff",
fill: "3978BB",
},
borders: {
top: disableBorder,
right: disableBorder,
bottom: disableBorder,
left: disableBorder,
},
margins: {
top: 50,
right: 50,
bottom: 50,
left: 50,
},
width: {
size: 8970,
type: WidthType.DXA,
}
})
]
})
],
borders: {
top: disableBorder,
right: disableBorder,
bottom: disableBorder,
left: disableBorder,
},
width: {
size: 9070,
type: WidthType.DXA,
}
})
}