//*-- handle all kinds of PPT files
//PowerPointExtractor ppe = null;
//ppe = new PowerPointExtractor(ifile);
//bodyText = ppe.getText() + ppe.getNotes();
//ppe.close();
QuickButCruddyTextExtractor qbt = new QuickButCruddyTextExtractor(ifile);
bodyText = qbt.getTextAsString();
}
catch (OutOfMemoryError e)
{ logger.error("Cannot allocate memory, file may be corrupt " + ifile + " " + e.getMessage()); }
catch (Exception e)
{ logger.error("Cannot extract text from a PowerPoint document " + ifile + " " + e.getMessage() ); }