Search code examples
replacepowerpointplaceholdercontentplaceholder

How to replace text in a PowerPoint (.ppt) document?


What solutions are there? I know only solutions for replacing Bookmarks in Word (.doc) files with Apache POI?

Are there also possibilities to change images, layouts, text-styles in .doc and .ppt documents?

I think about replacement of areas in Word and PowerPoint documents for bulk processing.

Platform: MS-Office 2003


Solution

  • What are your platform limitations?

    Obviously Apache POI will get you at least part of the way there.

    Microsoft's own COM API's are fairly powerful and are documented here. I would recommend using them if a) you are not running in a server (many users, multithreaded) environment; b) you can have a proper version of powerpoint installed on the production machine; and c) you can code against a COM object model.