Free Support Forum - aspose.com

Supporting landscape in pdf conversion

Hey,


In PresentationEx object i’ve found the way to notice whether the presentation is a landscape or portrait
using -> PresentationEx.SlideSize.Orientation

But in 2003 - Presentation object - i can’t find a way to verify the orientation of a presentation\slide.

How can this be done?

thanks

Hello Dear,<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>

I regret to
share that there is no direct orientation setting available for PPT in
Aspose.Slides. However, the following code snippet may help you achieving your
goal. For more details about SlideSizeType enumeration, please visit this
link. Secondly, you can
also compute the ratio of the slide size in terms of width and height using
Presentation.SlideSize property to get to know whether the slide is Portrait or
Landscape.
<o:p></o:p>

Presentation.SlideSizeType = SlideSizeType.Banner<o:p></o:p>

Thanks and
Regards,