如何在不安装powerpoint的情况下以编程方式将powerpoint pptx文件转换为ppt文件?

发布于 2024-11-26 22:40:08 字数 175 浏览 0 评论 0原文

如何以编程方式将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

潇烟暮雨 2024-12-03 22:40:08

你可以在服务器上安装OpenOffice Impress (Libre Office Impress),也许它可以进行文档转换。

我听说在 OpenOffice 中,有可用的 python API,甚至可能还有更多,甚至是 VBA 克隆。

可能无法像这样从命令行进行转换,

ooimpress -infile "mydoc.pptx" -outfile "mydoc.ppt" 

无论如何,转换可能并不完美。如果您的 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,

ooimpress -infile "mydoc.pptx" -outfile "mydoc.ppt" 

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

梦里人 2024-12-03 22:40:08

演示文稿对象有一个 SaveAs 方法可以执行此操作。例如,
为了将活动演示文稿保存为 .ppt 文件,以下代码将
完成这项工作:

ActivePresentation.SaveAs "FileName.ppt", ppSaveAsPresentation

参考:

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:

ActivePresentation.SaveAs "FileName.ppt", ppSaveAsPresentation

Reference:

http://www.pcreview.co.uk/forums/programmatic-conversion-pptx-into-ppt-t3339221.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文