PptxGenJS
PptxGenJS copied to clipboard
Do you have text rotate option?
Hi Brent,
I found rotate options in shapes, chart title and etc. Do you have text rotate option in Table cell?
I am looking for the rotated text inside the table cell like below


Hi @jenkinsns ,
You can rotate the text by passing the rotate attribute to the options object:
var pptx = new PptxGenJS();
var slide = pptx.addNewSlide();
var opts = { x:1.0, y:1.0, font_size:42, color:'00FF00', rotate:-90 };
slide.addText('Hello World!', opts);
pptx.save();
Best regards, Adrian
Thank you very much Yes i able to rotate text, but still I don't know how to add it inside the table. Now I created the table and add the text in the cell using addText.