This example saves changes before closing the presentation.
try { Application application = Application.getInstance(); Presentations presentations = application.getPresentations(); Presentation presentation = presentations.openPresentation("D:\\FileTypeAssociation\\test.odp", true); ... presentation.closePresentation(true); } catch(Exception e) { e.printStackTrace(); }
Related information