This example opens a presentation, and then saves it as Microsoft PowerPoint file and exports it to a PDF file and prints the presentation, at last closes the presentation.
import com.ibm.symphony.javaapi.Application; import com.ibm.symphony.javaapi.Constant; import com.ibm.symphony.javaapi.presentation.Presentation; import com.ibm.symphony.javaapi.presentation.Presentations; public class PresentationExample { public void example() { 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); presentation.exportPDF("C:\\test.pdf"); presentation.print(1, "1-7", true); System.out.println(presentation.getFullName()); presentation.closePresentation(true); } catch (Exception e) { e.printStackTrace(); } } }
Related information