How to extract Font size of text inside Placeholder in asposes.slides for Python.
Thank you for posting the question.
With Aspose.Slides for Python, you can extract the font size of a paragraph or text portion like this:
if isinstance(shape, AutoShape): # Get the first paragraph from the autoshape, for example paragraph = shape.text_frame.paragraphs # Get a default font size of the paragraph paragraph_height = paragraph.paragraph_format.default_portion_format.get_effective().font_height # Get an actual font size of the first text portion portion_height = paragraph.portions.portion_format.get_effective().font_height
I hope this helps you.