Please see the following documentation links with details and sample code regarding converting presentation slides to images using Aspose.Slides for Java.
Please feel free to contact support in case you need any further assistance.
I have checked your shared code with a sample PPT file at my end using Aspose.Slides for Java 8.1.0 and I am unable to reproduce the issue. Please share your template presentation file with us. Also, please share the environment details like OS, JDK version etc. with us to further check the issue at our end.
As requested in my previous post, please share your sample PPT /PPTX files with us to further check the issue as we are not able to reproduce the issue at our end.
I again tested your issue and I am not able to reproduce the issue you mentioned using Aspose.Slides for Java 8.1.0 with JDK 1.6.0.26. However, during my testing, I found out an issue with “DoubleBigPPT.pptx” (Rest of the files are converting fine). The file “DoubleBigPPT.pptx” hangs and doesn’t generate any output PNG file. I have registered this issue in our issue tracking system with issue id: SLIDESJAVA-34204. We will notify you once the issue gets resolved.
To reproduce your issue, I would suggest you to share the exact code you are using. It might help us identifying the cause of the issue at your end.
I am using the same code as shared above in the documentation links. I have attached the java file for your reference which you may test at your end and see if it works fine or you still get the same issue. I am using “Chapter16.pptx” file in this sample.
In case you need any further assistance, please do let us know.
I am getting this exception after code is running !
Exception in thread “main” java.lang.SecurityException: class “com.aspose.slides.PresentationEx”'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:806)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:625)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
From your response, it seems that there is no issue with Aspose.Slides and you are able to process the files fine. Regarding your requirement of getting multiple files from a directory and process them, it depends on your implementation that how you achieve it. However, I have updated the java class which gets all the files from a directory and process them one by one using Aspose.Slides. Please see the attached file for the sample code.
In case you need any further assistance, please feel free to contact support.