Changing background size in PresentationEx

Issue is - I have a template with a background showing to 1400 in PPT (2007)

I read the template, update the fields on the template - but after getting the template the ScreenSize.Width of the PresentationEx is set to 832 and therefore cuts off the fields added beyond that width. However I cannot see where this figure of 832 comes from - or how to increase it either in PPT or in Aspose. There is a post to use Presentation.SetSlideSize - but this doesnt exist in PresentationEx. The ScreenSize.Width is read only. So the question is - how can I increase the screen width from 832 to 1400 either in the Powerpoint template OR Aspose PresentationEx?

Hi David,


You can set the presentation size in case of PPT and PPTX. Please use the following code snippet for setting the presentation slide size in case of PPTX.

public static void SetSlideSize()
{
String path = @“D:\Aspose Data”;
PresentationEx presEx = new PresentationEx();
presEx.SlideSize.Type = SlideSizeTypeEx.Custom;

float PptxPointinch = 72;
//Give in Inches
float PptxWidth = 10;
float PptxHeight = 13;
// SizeF PptxSlideSize = new SizeF(new PointF(PptxWidth * PptxPointinch, PptxHeight * PptxPointinch));
SizeF PptxSlideSize = new SizeF(new PointF(1400, 540));
presEx.SlideSize.Size = PptxSlideSize;

presEx.Write(path + “PPTXOriented.pptx”);
}


Please share, if I may help you further in this regard.

Many Thanks,