This example first opens several presentations, then closes all of them without saving changes.
try { Application application = Application.getInstance(); Presentations presentations = application.getPresentations(); Presentation pre1 = presentations.openPresentation("D:\\test.odp", true); Presentation pre3 = presentations.openPresentation("D:\\test2.odp", true); presentations.closePresentations(false); } catch(Exception e) { e.printStackTrace(); }
Related information