PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

Do you have text rotate option?

Open jenkinsns opened this issue 9 years ago • 2 comments

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 image

image

jenkinsns avatar Nov 22 '17 10:11 jenkinsns

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

adrienco88 avatar Nov 22 '17 10:11 adrienco88

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.

jenkinsns avatar Nov 22 '17 17:11 jenkinsns