-
Notifications
You must be signed in to change notification settings - Fork 21
export_jpeg
Jochen Staerk edited this page Dec 21, 2015
·
1 revision
Source: http://ubion.ion.ag/mainForumFolder/noa_forum/0090/
IOfficeApplication application = OfficeApplicationRuntime.getApplication(hashMap); application.activate(); String docPath = "D:\\PFAD\\"; String docName = "NAME"; String docExt = "ppt"; String doc = docPath+docName+"."+docExt; IDocument document = application.getDocumentService().loadDocument(doc, DocumentDescriptor.DEFAULT); IPresentationDocument presentationDocument = (IPresentationDocument)document; IPageService pageService = presentationDocument.getPageService(); int numPages = pageService.getPageCount(); for(int i = 0; i < numPages; i++) { pageService.goToPage(i); String exportPath = docPath+docName+"_Seite_"+(i+1)+"."+JPEGFilter.FILTER.getFileExtension(document); document.getPersistenceService().export(exportPath, JPEGFilter.FILTER); } application.deactivate();