-
Notifications
You must be signed in to change notification settings - Fork 820
Closed
Description
let pptx = new PptxGenJS();
let slide =pptx.addSlide();
var arrTabRows = [
[
{ text: 'White', options: { fill: { color: '6699CC' }, color:'FFFFFF' } },
{ text: 'Yellow', options: { fill: { color: '99AACC' }, color: 'FFFFAA' } },
{ text: 'Pink', options: { fill: { color: 'AACCFF' }, color: 'E140FE' } }
],
[
{ text: '12pt', options: { fill: { color: 'FF0000' }, fontSize: 12 } },
{ text: '20pt', options: { fill: { color: '00FF00' }, fontSize: 20 } },
{ text: '28pt', options: { fill: { color: '0000FF' }, fontSize: 28 } }
],
[
{ text: 'Bold', options: { fill: { color: '003366' }, bold: true } },
{ text: 'Underline', options: { fill: { color: '336699' }, underline: true } },
{ text: '10pt Pad', options: { fill: { color: '6699CC' }, margin: 10 } }
]
];
slide.addTable(
arrTabRows, { x:6.0, y:1.1, w:7.0, rowH:0.75, fill:{color:'F7F7F7'}, color:'FFFFFF', fontSize:16, valign:'center', align:'center', border:{pt:'1', color:'FFFFFF'} }
);
pptx.writeFile();
Reactions are currently unavailable
