Free Support Forum - aspose.com

Pptx convert to image

Dear Aspose Support:

I convert the pptx to image with Aspose.Slide and found when the pptx has picture an error occured.
Here my core and the error:
//Instantiate a PresentationEx class that represents the PPTX file
PresentationEx pres = new PresentationEx(“E:\PptTest\Discuz.pptx”);
//Access the first slide
SlideEx sld = pres.getSlides().get(0);
//Create a full scale image
BufferedImage img = sld.getThumbnail(1f, 1f);
//Save the image to disk in JPEG format
ImageIO.write(img, “JPG”, new File(“E:\PptTest\ContentBG_tnailJ.jpg”));
System.out.println(“success”);
error:
Exception in thread “main” com.aspose.slides.pptx.PptxException$PptxReadException: Reading animation group failed.
at com.aspose.slides.pptx.animation.TimeLineEx.load(SourceFile:165)
at com.aspose.slides.pptx.SlideEx.do(SourceFile:84)
at com.aspose.slides.pptx.SlideEx.(SourceFile:76)
at com.aspose.slides.pptx.PresentationEx.do(SourceFile:414)
at com.aspose.slides.pptx.PresentationEx.(SourceFile:1156)
at com.aspose.slides.pptx.PresentationEx.(SourceFile:1140)
at aspose.Pptxtimg.pptx2img(Pptxtimg.java:28)
at aspose.Pptxtimg.main(Pptxtimg.java:19)
Caused by: java.lang.NumberFormatException: For input string: “”
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at com.aspose.slides.pptx.animation.TimeLineEx.load(SourceFile:129)

and I desire to know can Aspose use in Linux?

jimmy

Hi Jimmy,

Thanks for your interest in Aspose.Slides.

Can you please share the source presentation with us for necessary investigation on my end. In order to find more details about generating slide thumbnails, please visit this link.

Thanks and Regards,

I send you source Presentation.

P.S. Can Aspose use in Linux?

Hi Jimmy,

I have worked with the presentation shared by you. Actually, the issue is with animations inside presentation that are cause of exception since Aspose.Slides for Java is unable resolve it. An issue with ID 26537 has already been created in our issue tracking system to resolve the issue. In fact the issue has been resolved and will be shared in upcoming version of Aspose.Slides for Java, which is due for release in July. You will be notified, when the fix is available.

Thanks and Regards,

Thx,dear Mudassir.I hope I can get it no longer.

And I also hope it’s the last time I ask that can linux support Aspose?

Hi Thomas,

Yes, Aspose.Slides for Java can be used in Linux environment. Please visit this link and search for Platform in end of the web page.

Thanks and Regards,

The issues you have found earlier (filed as 26537) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.