Hi,
We are generating thumbnail images for a PPTX presentation. But if we used jdk1.4 and the library aspose.slides-2.5.0-jdk14.jar, an Exception occurred. Please find below the exception and code snippet. Please suggest.
java.lang.ClassCastException: com.aspose.slides.obfuscated.bil
at java.awt.font.TextLayout.singleFont(TextLayout.java:565)
at java.awt.font.TextLayout.(TextLayout.java:630)
at com.aspose.slides.ImageCanvas.drawString(SourceFile:175)
at com.aspose.slides.pptx.SlideEx.do(SourceFile:304)
at com.aspose.slides.pptx.SlideEx.getThumbnail(SourceFile:374)
PresentationEx pres = new PresentationEx("d:\\test.pptx");
SlideEx sld = pres.getSlides().get(0);
BufferedImage img = sld.getThumbnail(1, 1);
ImageIO.write(img, "JPG", new File("d:\\test_out.jpg"));