Unable to Handle Content Overflow in PPT Slide Using Aspose.Slides for .NET

We’re dynamically generating a PowerPoint presentation using the Aspose Library. In the presentation slide, we utilize a static template and populate the content using the Alt Text property through the Aspose library. However, as the content increases, the container size expands, causing overflow beyond the slide boundaries. Please see the attached example for clarification. Our goal is to segment the slide into multiple slides once it reaches a certain length, transferring the overflow content to subsequent slides while maintaining the same static template.

Currently, we are using the Aspose Version: 21.1.0

Could you please confirm if the above version of the Aspose library supports this overflow content transfer functionality? If not, we would appreciate recommendations for alternative versions that do.

Demo_PPT.zip (348.5 KB)

@vipinmishra,
Thank you for contacting support.

I’ve analyzed your requirements. Because the issue is related to PowerPoint behavior, I can only suggest you adding the text in parts and use the GetRect method from the IParagraph interface to calculate the bounds of the text and compare them with the shape height. When the text overflows the shape height, you should remove the excess portion.

RectangleF paragraphBounds = paragraph.GetRect();

More examples:
Paragraph|Aspose.Slides Documentation

There were many significant updates after version 21.1. We recommend you use the latest version of Aspose.Slides for .NET.

You can get a temporary license to evaluate the functionality.