views:

596

answers:

4

I'd like to create a PowerPoint (not Javascript/HTML/PDF/Keynote/.mov) using code (any language, C preferred) for free.

(I've seen this SO question which references how to create them in C#)

Is this even possible? How can I write the raw bits that make up a PowerPoint file? Any good libraries for doing this?

UPDATE The Microsoft Reference Page for the binary format is here.

+7  A: 

Open Office has an API. You can use the C++ bindings (doc available here). If you really need C, you'll have to do some wrapping.. but hey, it's Christmas, isn't it ;-)

Open Office has export functions to create .ppt compatible files.

jldupont
+3  A: 

PowerPoint you may not, but OpenOffice Impress you may. (Yoda style answer :) )

Take a look at the ODF Toolkit project. They aim to produce lots of libraries for generating this kind of content programatically.

Kico Lobo
Up voted you I have, link you must provide.
Tim Post
Link you have now. http://odftoolkit.openoffice.org/ :)
Kico Lobo
Update your answer, you should ;-)
jldupont
+1  A: 

If you don't mind going to Java, Apache POI provides readers and writers for most MS Office formats (up to the 2003 version anyway).

David Winslow
A: 

keywords, package: unoconv phppowerpoint application/vnd.ms-powerpoint

ulkas