Convert file. ppt

hi to all… I am writing a program java that creates a window similar to PowerPoint (to the left the list of the slides, while to the right the enlargement of the selected one). In input the program takes a file. ppt… I want to save every slide in the PowerPointPresentation in a file. jpg, to be able to load then the images in the window.
do I hope to be explains me… I can save every slide in a file jpg?
Sorry for my english…
thanks

Please check Developer Guide: Convert Slide chapter.
Slide rendering in Java version is not so good as in .Net yet so
you have to test and decide if it’s good for you or not.

if I create a presentation with a one slide (demo.ppt)… the bug is the following:

Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ByteArraySeekableStream
at com.aspose.slides.PPImage.do(SourceFile:381)
at com.aspose.slides.PPImage.getRenderedImage(SourceFile:340)
at com.aspose.slides.PPImage.(SourceFile:40)
at com.aspose.slides.Picture.(SourceFile:15)
at com.aspose.slides.Presentation.do(SourceFile:315)
at com.aspose.slides.Presentation.(SourceFile:568)
at PP.main(PP.java:26)

do I need some classes?where am I wrong?
thanks


At first, you have to read software requirements in the “readme” file or Wiki.

I have Java runtime 1.5…I have installed JAI - Java Advanced Imaging API - (JRE,JDK,CLASSPATH) and JAI Image I/O (JRE,JDK;CLASSPATH) and I have inserted
JAI Image IO in the classpath.
the bug is the same:

Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ByteArraySeekableStream
at com.aspose.slides.PPImage.do(SourceFile:381)
at com.aspose.slides.PPImage.getRenderedImage(SourceFile:340)
at com.aspose.slides.PPImage.(SourceFile:40)
at com.aspose.slides.Picture.(SourceFile:15)
at com.aspose.slides.Presentation.do(SourceFile:315)
at com.aspose.slides.Presentation.(SourceFile:568)
at PP.main(PP.java:26)

In the Add\Remove programs there are:
- J2SE Development Kit 5.0 Update 9;
- J2SE Runtime Environment 5.0 Update 9;
- JAI Image I\O Tools 1.0_01 for CLASSPATH;
- JAI I\O Tools 1.0_01 for JDK;
- JAI I\O Tools 1.0_01 for JRE.

thanks



Looks like JAI and JAI-IO is not in the classpath.
Please check if JRE has 5 jar files in the %JAVAHOME%/lib/ext directory:

clibwrapper_jiio.jar
jai_codec.jar
jai_core.jar
jai_imageio.jar
mlibwrapper_jai.jar

In the JRE directory:
- D:\Programmi\Java\jre1.5.0_09\lib\ext there are:
clibwrapper_jiio.jar
jai_codec.jar
jai_core.jar
jai_imageio.jar
mlibwrapper_jai.jar

I have modified the Path in this way:

C:\Programmi\Sun Microsystems\JAI Image IO Tools 1.0_01;
C:\Programmi\Sun Microsystems\Java Advanced Imaging 1.1.3\lib;
D:\Programmi\Java\jdk1.5.0_09\jre\bin

thanks for the patience…

It’s better to copy these jar files to both places:
Java\jre1.5.0_09\lib\ext
Java\jdk1.5.0_09\jre\lib\ext

It’s the same…

ok…I have resolved the problem…thanks
hi

I also work with the Java Advanced Imaging API, but because of the Codec i get sometimes, when i want to parse a ppt-file with a Master Layout a OutofMemory Exception.

Is there any other API instead of JAI to get a better performance or something like this??

Best regards.