scanny / python-pptx

Create Open XML PowerPoint documents in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fit shape to text?

Rapid1898-code opened this issue · comments

commented

Hello - is there any way to fit a shape to a text?

(so i have a simply text-field in a shape with a background color - and when the text is too long it gets cut - so i want to autosize the shape to the given text)

I tried it with

shape.text_frame.fit_text()

but this seems to only shrink the text itself - but i want to have the shape get fitted to the text.