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

Free Support Forum - aspose.com

Exception java.lang.StackOverflowError while covert powerpoint to PDF

I am trying to covert PowerPoint to searchable PDF via aspose.slides-8.5.0.jar. However the following exception encountered, Can please advice?

Source Code:
Presentation pres = new Presentation(filePath);
pres.save(destination, SaveFormat.PDF);
Eexception:
Exception in thread “main” java.lang.StackOverflowError
at java.lang.ThreadLocal$ThreadLocalMap.set(Unknown Source)
at java.lang.ThreadLocal$ThreadLocalMap.access$100(Unknown Source)
at java.lang.ThreadLocal.set(Unknown Source)
at com.aspose.slides.pf4dd765c.pf4dd765c.pbdb106a0.y.long(Unknown Source)
at com.aspose.slides.pf4dd765c.pf4dd765c.pbdb106a0.y.if(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.cq.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pf4dd765c.pbdb106a0.y.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.ea.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.ea.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.ea.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p6a2feef8.i.(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p6a2feef8.i.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p9f36407e.v.char(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.p6a2feef8.i.byte(Unknown Source)
at com.aspose.slides.pf4dd765c.pf4dd765c.pbdb106a0.y.long(Unknown Source)
at com.aspose.slides.pf4dd765c.pf4dd765c.pbdb106a0.y.if(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.cq.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pf4dd765c.pbdb106a0.y.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.ea.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.ea.do(Unknown Source)
at com.aspose.slides.pf4dd765c.pbdb106a0.ea.do(Unknown Source)

Hi Zhang,

Thank you for the details.

Please share the pptx file with us which is causing the problem. We will check it and get back to you.

Thanks & Regards,

Hi Team,

As requested, Please see the attached docs.

Hi Zhang,

Thank you for sharing the presentation file.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I tested your sample file with the below sample code and the latest version of Aspose.Slides for Java v8.6.0 and it converts to PDF without any issue.

PresentationEx doc = new PresentationEx("C:/data/PPT_2010.pptx");

doc.save("C:/data/output_2010.pdf", SaveFormat.Pdf);

Please download and try the latest version and let us know in case you still face any issue. Also, please use PresentationEx class instead of Presentation class to manipulate PPTX files.

Thanks & Regards,

Issue Resolved. Thanks to support Team.

Issue resolved by re-download the lib which is version 8.6.