heavysixer / node-pptx

Generate PPTX files on the server-side with JavaScript.
MIT License
161 stars 44 forks source link

Textbox height/width options? #69

Closed DavidLozzi closed 3 years ago

DavidLozzi commented 3 years ago

I notice textboxes all come in the same size, can I set the height and width as needed? I see the constructor for Textbox has cx and cy but no props to override it?

DavidLozzi commented 3 years ago

Ah was able to achieve it by just setting those myself

slide.addText({ value: summary, fontSize: 18, x: col1, y: 100, fontFace: 'Arial', cx: 600, cy: 50 })