Free Support Forum - aspose.com

Presentation.getSlideCount()

Aspose.Words has Document.getPageCount().


What is the equivalent in Aspose.Slides. I would check JavaDoc and/or Source code usually but without that I’m find it hard as there are slight differences between Aspose products. e.g. SaveFormat.PDF (Cells & Words) vs SaveFormat.Pdf (Pdf & Slides).

Hi John,


Thank you for your growing interest in Aspose.Slides.

I have observed your comments and like to request you to use following line of code to serve the purpose on your end.

int x= pres.getSlides().size();

I hope this will be helpful. Please share if I may help you further in this regard.

Best Regards,

Cheers, that works

Hi John,


Thank you for your kind feedback.

We are glad to know that your issue is resolved and things have started working on your end.

Please feel free to contact us if we could be of any help to you.

Best Regards,