We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

FitTextToShape() is not working correctly

Hello -

I am evaluating the product and by and large I like what I see. I am
generating a PPT from data stored in the database. When there is a
large amount of text, it grows too large for the slide so I call
FitTextToShape() on the TextFrame and it doesn’t quite work correctly.
I’ve attached a zip file that contains two zip files, one where the
slide was generated from the Aspose tool and one where the same slide
was then formatted to shrink text to shape within PowerPoint itself.

Notice how in the Aspose file the text definitely does not fit but in the PPT one it does.

Also, is there a way to quickly determine if a shape/textframe’s text
is so large it is in overflow mode so I can create a new slide if

I’ve included the code I’m using to resize the text in case I am doing it incorrectly:


where m_slide is a slide that I’ve created by cloning a default slide in the presentation. The slide in question has a text box that already has the shrink which seems to be ignored.



FitTextToShape actually works, I have used it many times, can you please mention what is the version of Aspose.Slides you are using.

Please also provide me your sample code, any source presentation you are using and output presentation to look into it.

To check overflowing of text from slide boundries, please see this post.

<A href="</A> </P></FONT>