@Ronnie_Lazar,
I’ve reproduced the problem with converting the presentation to the broken PDF without any exception and added a ticket with ID SLIDESCLOUD-1401 to our issue tracking system. Our development team will consider improving the behavior of Aspose.Slides for such cases. You will be notified when the issue is resolved.
As a workaround, you should check the number of slides before exporting the presentation to other formats as shown below:
slidesApi.getSlides("bad.pptx").then((response) => {
slideCount = response.body.slideList.length
if (slideCount > 0) {
// convert the presentation to PDF
}
})
.catch(function (error) {
console.error(error)
})
API Reference: GetSlides