Slide size

Hi … i´ve set a custom slide size in my slide master which seems to be ignored by aspose.slides.


Is there a way to use my custom settings or to set the size of a slide programmatically?

To reproduce this go to ->slide master -> page setup and enter a custom value.
Then clone this presentation using aspose.

thanks,
B.Tauber

Hi B. Tauber,


Please use the following code snippet for setting the slide size to custom values. Please share if I may help you further in this regard.

Presentation newPresentation = new Presentation();

//There are 576 pixels per inch so the default slide size is 10’’ X 7.5’’ =5760 X4320= (7208) x(5408)

newPresentation.setSlideSizeType(SlideSizeType.CUSTOM);//(srcPpt.getSlideSizeType());
newPresentation.setSlideSize(new java.awt.Point(9008,6008));

newPresentation.write(“D:\Aspose Data\TestSize.ppt”);


Many Thanks,