Hi,
Someone in our QE dept created a PPTX slide deck that has > 10,000 slides, and it causes OOM exceptions while parsing (e.g., during new Presentation(…)). They are concerned that it could be used in a DOS attack, so they’ve asked me to reject PPTXs with > 500 slides.
Is there any API to determine how many slides a pptx file has prior to calling ‘new Presentation()’?
Alternatively, is there an IWarningInfo that gets called that would be useful if I set an IWarningCallback in LoadOptions?
Thanks,
–tom
Hi Tom,
I have observed the requirements shared by you and like to share that at present the support for getting the slide count without even loading the presentation is unavailable in Aspose.Slides. I have created an issue with ID SLIDESNET-37596 as new feature request to further investigate the possibility of implementing the requested support. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.
We are sorry for your inconvenience,