We use the code snippet below to extract custom properties from a 
directory full of powerpoint files. 

            File pptFileRef = ...
        ...
            FileInputStream pptFile = new FileInputStream(pptFileRef);
            PowerPointExtractor txex1 = new PowerPointExtractor(pptFile);
            DocumentSummaryInformation dsi = 
txex1.getDocSummaryInformation();
            CustomProperties prop = dsi.getCustomProperties();
            if (prop == null)
            {
                continue;
            }
 
            Object data = prop.get("Custom Property1");
            if (data!= null)
            {
                // do something with data
            }

Every so often, this line
        PowerPointExtractor txex1 = new PowerPointExtractor(pptFile);
causes the message
        Found a TextHeaderAtom not followed by a TextBytesAtom or 
TextCharsAtom: Followed by 4006
to be displayed to the console.

What is causing this?  The PPT file looks fine when I open it.

Is there a way to suppress or handle these messages?

Reply via email to