Example: savePresentation method

This example shows how to save a presentation.

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

Related information

savePresentation method