You can also implement the similar logic for PPT presentations as well. I have transformed the sample code linked in my former post to work for PPT as well. Please use the following sample code for your convenience.
public static void SetPPTPresentaitonSize()
Presentation presentation = new Presentation(“D:\Aspose Data\TestResize.ppt”);
int currentHeight = presentation.SlideSize.Height;
int currentWidth = presentation.SlideSize.Width;
int heightSize = currentHeight - 130;
presentation.SlideSizeType = SlideSizeType.Custom;
Size size=new Size(currentWidth, heightSize);
float ratioHeight = heightSize / currentHeight;
foreach (Shape shape in presentation.Slides.Shapes)
shape.Height = (int)(shape.Height * ratioHeight);
I like to add that the text can be in placeholders, text holders and text frames. Please visit this documentation link for your kind reference which will help you to access every text entity in the presentation. For managing font related properties of PPT presentation, please visit this documentation link.
Great, this has helped a lot, thanks again!