如何在不安装powerpoint的情况下以编程方式将powerpoint pptx文件转换为ppt文件?
如何以编程方式将 pptx 文件转换为 ppt 文件。这种情况发生在未安装 PowerPoint 的 Web 服务器上。 我最好寻求免费的解决方案。
如果不可能,我可能会考虑在服务器上安装 PowerPoint,但我担心该解决方案的可扩展性。我不希望服务器陷入困境,因为正在进行多次转换......
谢谢
How can I convert a pptx file to a ppt file programmatically. This happens on a web server that does not have PowerPoint installed.
I'm after a free solution preferably.
I may consider installing PowerPoint on the server if it is not possible but I'm concerned about the scalability of that solution. I wouldn't want the server to be struggling because multiple conversions are in progress...
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以在服务器上安装OpenOffice Impress (Libre Office Impress),也许它可以进行文档转换。
我听说在 OpenOffice 中,有可用的 python API,甚至可能还有更多,甚至是 VBA 克隆。
可能无法像这样从命令行进行转换,
无论如何,转换可能并不完美。如果您的 pptx 文件包含嵌入的 OLE 文档,则可能会出现问题。
带有项目符号列表和一些简单图形对象(圆圈、箭头、光栅图形文件,例如 gif)的简单幻灯片不太可能成为问题。
以下是一些具有类似问题的 openoffice 论坛主题的链接。
.doc 到 .pdf,都是命令行吗?
http://www.oooforum.org/forum/viewtopic.phtml?t=5513 救命啊
! - Word 文档到 XML 的简单命令行转换
http://www.oooforum.org/forum/viewtopic.phtml?t=7242
You could install OpenOffice Impress (Libre Office Impress) on the server, maybe it can do the document conversion.
I hear that in OpenOffice, there are python APIs avalaible, and maybe more, even a VBA clone.
It is probably not possible to convert from the command line like this,
In any case, the conversion will probably not be perfect. If your pptx files contain embedded OLE documents, expect problems.
SImple slides with bulleted lists and some simple graphics objects (circles, arrows, Raster Graphics files such as gifs) are less likely to be a problem.
Here are some links to openoffice forum-threads with similar problems.
.doc to .pdf, all command-line?
http://www.oooforum.org/forum/viewtopic.phtml?t=5513
Help! - Simple command line conversion of Word doc to XML
http://www.oooforum.org/forum/viewtopic.phtml?t=7242
演示文稿对象有一个 SaveAs 方法可以执行此操作。例如,
为了将活动演示文稿保存为 .ppt 文件,以下代码将
完成这项工作:
参考:
http://www .pcreview.co.uk/forums/programmatic-conversion-pptx-into-ppt-t3339221.html
The presentation object has a SaveAs method that can do this. For instance,
for saving the active presentation as a .ppt file, the following code would
do the job:
Reference:
http://www.pcreview.co.uk/forums/programmatic-conversion-pptx-into-ppt-t3339221.html