Is there a way to set the slide orientation?

I wanted to see if there is a way to change the PPTX slide orientation to portrait using aspose.slides. I am using the latest version 14.7.

Hi Adam,

Yes, it is possible to save a presentation with landscape orientation to portrait. Please see the following sample code in this regard.

//Open a presentation
Presentation pre = new Presentation(“D:\data\test2.pptx”);

//Set the Orientation
pre.SlideSize.Orientation = SlideOrienation.Portrait;

//Save Presentation
pre.Save(“D:\data\test2_portrait.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);

Thanks & Regards,

thanks… is there anyway to do this rotation just for a single slide inside a presentation?

Hi Adam,

Thank you for the feedback.

I am afraid, you cannot change the orientation of a slide separately. I don’t think this feature is even supported by MS PowerPoint. It also sets the orientation of the complete presentation.

Please feel free to contact support in case you need any further assistance.

Thanks & Regards,