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

Free Support Forum - aspose.com

Problem with FitTextToShape()

Like a couple of other people I have found that FitTextToShape() doesn’t always work. There can still be some overflow.
We are using the .NET version (2.8.9).
I have attached the resulting powerpoint as well as a screenshot of what it looks like in powerpoint.

I used the following code to generate the attached powerpoint:

Presentation pres = new Presentation();
Slide slide = pres.Slides[0];

Rectangle rect = slide.Shapes.AddRectangle(500, 500, 1000, 2000);
rect.LineFormat.ShowLines = false;

TextFrame frame = rect.AddTextFrame(“Test\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\r”);



Any suggestions??

If I’m not mistaken, that is the first report about FitTextToShape() method.
Anyway, thank you very much for this information.
We have found the bug and it will be fixed in a few days.

Any progress with this problem?

Did you try Aspose.Slides


Yes, I did try, but no difference, the problem is still present.

The bug has been fixed in next upcoming release. You can expect it in next couple of weeks.