You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently been trying to add text to a slide that is basically html content. I simplify the content using innerText and inject it.
const text = data.element.innerText; // element is an html div
slide.addText(text, { x: '0%', y: '0%', w: '100%', h: '100%', autoFit: true, valign: 'top' });
I expected this to shrink the text to fit within the box, but instead the text overflows out of the box (It's a lot of text). Looking into powerpoint itself, I found that within the text box's autofit options, there are a total of 3: Do not Autofit, Shrink text on overflow, and Resize shape to fit text. From what I understand, setting autoFit to false equates to Do not autofit and true equates to Resize shape to fit text. I'm looking for the middle option: Shrink text on overflow.
Is this currently possible with the library? I've read through the docs but nothing standing out to me.
Thanks,
The text was updated successfully, but these errors were encountered:
I've recently been trying to add text to a slide that is basically html content. I simplify the content using innerText and inject it.
I expected this to shrink the text to fit within the box, but instead the text overflows out of the box (It's a lot of text). Looking into powerpoint itself, I found that within the text box's autofit options, there are a total of 3:
Do not Autofit
,Shrink text on overflow
, andResize shape to fit text
. From what I understand, setting autoFit to false equates toDo not autofit
and true equates toResize shape to fit text
. I'm looking for the middle option:Shrink text on overflow
.Is this currently possible with the library? I've read through the docs but nothing standing out to me.
Thanks,
The text was updated successfully, but these errors were encountered: