Example: saveAsPresentation method

This example saves a presentation as Microsoft PowerPoint file.

try {
  Application application = Application.getInstance();
  Presentations presentations = application.getPresentations();
  Presentation presentation = presentations.openPresentation("D:\\FileTypeAssociation\\test.odp", true);
  presentation.saveAsPresentation("C:\\test.ppt", Constant.SYMPHONY_FILE_FORMAT_PPT);
} catch(Exception e) {
  e.printStackTrace();
}

Related information

saveAsPresentation method