I use cloneSlide() with the ppt in the attachment.
The folowing Exception is thrown:
Caused by: com.aspose.slides.PptEditException: Slide cloning error.
… 19 more
Caused by: java.lang.NullPointerException
… 20 more
Thank you for fixing.
Thanks for reporting. We will fix this bug as soon as possible.
Please try the latest version Aspose.Slides for JAVA 22.214.171.124
Thank you for fast fixing.
Now it throws (Please note I'm using j2sdk 1.4.2._06) with every of my test PPTs:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Please read system requirements here or in the readme file.
Now it works, thank you much.
I was able to find a download for a “no native acceleration” version of JAI (
https://jai.dev.java.net/binary-builds.html) but I was not able to find that type for JAI Image I/O Libraries. Is the JAI Image I/O Libraries needed for Aspose.Slides for Java to work? Thanks very much!
Aspose.Slides for JAVA will work without them except you will not be able to get images of slides.
I am able to create images for individual slides. The images generated contain NO shapes/objects/etc. In all cases, none of the shapes or objects are coming out in the generated thumbnail. See attached Test ppt, it contains a chart which is not generated into an image, only a blank rectangle on the shown in the thumbnail. All other slides without any shapes/objects come out fine colors and all.
I have generated the images which you can see in the attachment; Aspose.Slides for JAVA is not rendering the borders of the placeholders and rendering the slide with chart correctly.
You just need JAR files and don’t need any dll. Please read this post (119170) and let me know if it solves your problem
Thank you for the above link to jai jars. I’ve included these jars in my project and still I am not able to generate the image with chart as you have. Do the jars have to be in a specific order in the classpath?
This is my test:
BufferedImage thumbnail = slide.getThumbnail(new Dimension(700, 500));
ImageIO.write(thumbnail, “jpg”, new File(“C:\Temp\Test.jpg”));
I have requested technical team lead to help you in this regard. He will help you as soon as possible. Thanks for your patience.
I’m afraid attached presentation simply broken. There are empty master slides.
All shape styles are deleted so it’s not possible to draw right rectangles.
Please see the attached a powerpoint. It contains the all the master slides as they are, everything intact. This powerpoint contains an OLE chart object. My problem is that I am able to generate a thumbnail of everything on the slide except for the chart which is an OLE object. Is it that Aspose.Slide is not able to at this point, generate images of OLE objects?
The JDK version I am using is JDK1.4.2_05.
Sorry for delay.
I tested your presentation and chart rendered fine.
Do you have Aspose.Metafiles in the classpath?
Not a problem. I’m afraid I didn’t have Aspose.Metafiles.jar in my classpath. I just downloaded it from aspose and all the slide images are coming out perfect now. The world makes sense again.
One last question, Do I need to download anymore jars to include in my classpath to handle all possible kinds of interaction with any kind of a PPT (versions of MS office) or other?
Thank you so much for your prompt responses.
No, you don't need anything else except you might need a patch for PNG images