Copy PowerPoint Slides in Java (preferably)

允我心安 提交于 2019-12-11 03:42:50

问题


I have a Java program in which I want to copy PowerPoint slides from one presentation into another. I have looked into the "Slides" API in Apache POI, but can't find any reference to a capability like that there.

Though the calling program will be Java, I'm open to the idea of the actual work being in another language. For example, I could run on Windows and call a COM component through JACOB or something.

How can I best achieve this? Also for clarification, I need to support both PPT and PPTX formats.


回答1:


It turns out that PowerPoint's own COM API has a built-in method that makes this quite easy: InsertFromFile



来源:https://stackoverflow.com/questions/2959103/copy-powerpoint-slides-in-java-preferably

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!