ThumbNails generation problem for PPTX & PPSX file

Hi,
I have using your Aspose.Slide component for getting thumbnails from PPT files. It’s generate thumbanails for only .ppt & .pps files. Its give error for .pptx,.ppsx,.pptm as “java.lang.NegativeArraySizeException”.
Please provide solution for this.

Hi Javed,

Thanks for your interest in Aspose.Slides.

It would be great, if you can share your PPTX file with us for investigation purpose. Please visit this documentation link to create thumbnails of PPTX file.

Hi Tahir,
I have attached file here with. please find the attachment.




Hi Javed,

I am unable to open your PPTX file. There are some unreadable contents in test.pptx. Please share correct PPTX file so that we can investigate your issue.


Please use the latest version of Aspose.Slides for Java 2.5.0. Please use the following code snippet to create the thumbnails of PPTX, PPSX, PPTM.


private static void generateImages(){
PresentationEx pptx = new PresentationEx(“d:\pptx\Thumbnails.pptx”);
SlidesEx slides = pptx. getSlides();
for (int i = 0; i < slides.size(); i++) {
try {
SlideEx slide = slides.get(i);
BufferedImage imge = slide.getThumbnail(1,1);
System.out.println("Thumbnail for slide " + (i + 1) + " Generated? " +ImageIO.write(imge, “jpeg”, new File(“d:\pptx\” + File.separator + “Slide” + (i+1) + “.jpg”)));
} catch (Exception e) {
e.printStackTrace();
}
}
}
For PPSX and PPTM, you just need to modify PresentationEx constructor. e.g.
PresentationEx pptx = new PresentationEx(“d:\pptx\Thumbnails.ppsx”);
PresentationEx pptx = new PresentationEx(“d:\pptx\Thumbnails.pptm”);


Thanks Tahir…
Its working fine with your code. Another one doubt is, when we extract images from .pptx file the white color text comes black in slides. so how this is fixed?
Also right now we are using your component as on trial basis,
my question is ,
1] It is taking more memory while extracted images?
2] So what is the cost if we want get paid your component?

Hi Javed,

The text color should not be changed after generating thumbnail images of a presentation file and there should not be an issue with memory as well. Please share your presentation file for investigation purpose.
We are really keen to help you but need further details from your side.