2
votes

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
while this functionality is not currently available in POI, I've filed an enhancement request with Apache for this: issues.apache.org/bugzilla/show_bug.cgi?id=53769Chris Drappier
I just wrote code to do this using pptx4j, but pptx4j doesn't really support binary .pptJasonPlutext

1 Answers

2
votes

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