Hi!

I just want to extract the text to index in lucene. I am using the poi-3.0 jar files. The hslf package in the scratchpad jar.

My code is as follows

PowerPointExtractor ppExtractor = new PowerPointExtractor(new FileInputStream(filename.ppt));
        String text = ppExtractor.getText();

but I am getting the following exceptions. What am I doing wrong?

Exception in thread "main" java.lang.NullPointerException
at org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.java:211)
        at org.apache.poi.hslf.usermodel.SlideShow.<init>(SlideShow.java:83)
at org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:85)
        at indexing.PowerPointHandler.getDocument(PowerPointHandler.java:22)
        at indexing.IndexFiles.indexFile(IndexFiles.java:132)
        

thanks,
suba suresh

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to