用Java复制PowerPoint幻灯片(最好) [英] Copy PowerPoint Slides in Java (preferably)

查看:103
本文介绍了用Java复制PowerPoint幻灯片(最好)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java程序,我想在其中将PowerPoint幻灯片从一个演示文稿复制到另一个演示文稿中.我已经研究了Apache POI中的"Slides" API,但是在那里找不到对这种功能的任何引用.

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.

尽管调用程序将是Java,但我对实际工作使用另一种语言的想法持开放态度.例如,我可以在Windows上运行,并通过 JACOB 或其他方式调用COM组件.

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.

我怎样才能最好地做到这一点?同样为了澄清起见,我需要同时支持PPT和PPTX格式.

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

推荐答案

事实证明,PowerPoint自己的COM API具有一个内置方法,可以使此操作非常容易:

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

这篇关于用Java复制PowerPoint幻灯片(最好)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆