/** Basic extractor. Returns all the text, and optionally all the notes */
  public static void main(String args[]) throws IOException {
    if (args.length < 1) {
      System.err.println("Useage:");
      System.err.println("\tPowerPointExtractor [-notes] <file>");
      System.exit(1);
    }

    boolean notes = false;
    boolean comments = false;
    String file;
    if (args.length > 1) {
      notes = true;
      file = args[1];
      if (args.length > 2) {
        comments = true;
      }
    } else {
      file = args[0];
    }

    PowerPointExtractor ppe = new PowerPointExtractor(file);
    System.out.println(ppe.getText(true, notes, comments));
  }
 public String getText(byte[] data) throws Exception {
   PowerPointExtractor ppe = new PowerPointExtractor(new ByteArrayInputStream(data));
   return ppe.getText(true, true);
 }