如何替换PowerPoint(.ppt)文档中的文本? [英] How to replace text in a PowerPoint (.ppt) document?
问题描述
有什么解决方案?我只知道用Apache POI替换Word(.doc)文件中的书签的解决方案吗?
What solutions are there? I know only solutions for replacing Bookmarks in Word (.doc) files with Apache POI?
是否还可以更改.doc和.ppt文档中的图像,布局,文本样式?
Are there also possibilities to change images, layouts, text-styles in .doc and .ppt documents?
我考虑替换Word和PowerPoint文档中的区域以进行批量处理.
I think about replacement of areas in Word and PowerPoint documents for bulk processing.
平台:MS-Office 2003
Platform: MS-Office 2003
推荐答案
您的平台有哪些限制?
What are your platform limitations?
很明显 Apache POI 至少可以帮助您实现这一目标.
Obviously Apache POI will get you at least part of the way there.
Microsoft自己的COM API相当强大,并且在此处 .如果a)您未在服务器(许多用户,多线程)环境中运行,则建议使用它们. b)您可以在生产机器上安装正确版本的powerpoint;和c)您可以针对COM对象模型进行编码.
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.
这篇关于如何替换PowerPoint(.ppt)文档中的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!