Hi Prasad,
Thanks for inquiring Aspose.Slides.
I have observed your requirements and like to share that you can set the destination presentation slide size with that of source presentation using following sample code before cloning the slides in destination presentation.
presOut.SlideSize.Size = originalPresentation.SlideSize.Size;
The presOut is destination presentation and originalPresentation is source presentation. I hope the shared information will be helpful.
Many Thanks,
Hi Prasad,
In that case, you need to first check if the width or height of destination presentation slide is less than respective width or height of source presentation then it should change the size of destination presentation. Otherwise, the size of destination presentation is not changed. The following addition to your sample code will serve the purpose.
if(presOut.SlideSize.Size.Width<originalPresentation.SlideSize.Size.Width)
presOut.SlideSize.Size = originalPresentation.SlideSize.Size;
Many Thanks,
Hi Parasad,
Hi Prasad,
I have observed the sample code as well as presentation files shared by you. First of all, I like to mention that there is single slide size for entire presentation deck. Every slide will have same slide size that is set on presentation level. In attached presentations, every slide bear different slide size in terms of width and height. What I have observed from your requirement is that you want to set the maximum slide width and maximum slide height of all presentation decks separately. I have modified the sample code as per your requirement to achieve the desired slide size. Please try using the attached sample code for your convenience.
Many Thanks,
Thanks. This worked.