This powerpoint document has multiple problems.
The first slide doesn’t have the 3-d bevel on the cells.
The second slide doesn’t have the contents of the table
The third slide is missing the images of the credit cards
The 4th slide doesn’t have the 3-d bevels.
This is the program.
public class PptToJpg {
// public static void converttojpg() {
public static void main (String[] args) {
com.aspose.slides.License license = new com.aspose.slides.License();
license.setLicense(“Aspose.Slides.lic”);
// Presentation pres = new Presentation("/var/tmp/Application Development Overview.pptx");
// Presentation pres = new Presentation("/var/tmp/CBUP present 0402115.pptx");
Presentation pres = new Presentation("/var/tmp/test.pptx");
ISlideCollection slides = pres.getSlides();
int firstslide=pres.getFirstSlideNumber();
int lastslide=firstslide + slides.size() - 1;
ISlide slide;
System.out.println(“num slides " + firstslide + " " + lastslide);
for(int i=0;i<=lastslide;i++)
{
//Accessing a slide using its slide position
System.out.println(“Slide number " + i);
slide= slides.get_Item(i);
BufferedImage image = slide.getThumbnail(2, 2);;
//Saving the image in jpeg format
try {
ImageIO.write(image, “jpeg”, new File(“Slide”+i+”_b.jpg”));
}
catch (Exception e) {
System.out.println(e.getMessage());
}
} // end of for
}
}