This example closes the active presentation without saving changes.
try { Application application = Application.getInstance(); application.getPresentations().openPresentation("D:\\test.odp",true); Presentation presentation = application.getActivePresentation(); presentation.closePresentation(false); } catch(Exception e) { e.printStackTrace(); }
Related information