We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com


I’m migrating Slide for Java 7.7.0 which used the code below to find the height of the slide.
Now with current version Slide 14.6.0, I don’t know how to migrate this code.
Can you please help?

Much thanks

Slide s = presentation.getMainMaster();

int slideHeight = s.getBackground().getHeight();

Hi Hong,

Please use the following line of code to get the height of the slide using the latest version of Aspose.Slides for Java v14.6.0.

double slideHeight = presentation.getSlideSize().getSize().getHeight();

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

Thanks & Regards,