使用OpenXML将PowerPoint演示文稿另存为PDF [英] Using OpenXML to save a PowerPoint presentation as a PDF

查看:120
本文介绍了使用OpenXML将PowerPoint演示文稿另存为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是进行一个自动化的服务器端过程,以将.ppt转换为.pdf. Microsoft自己建议我使用OpenXML,现在我正在研究它.

My objective is to make an automated server-side process to turn a .ppt into a .pdf. Microsoft themselves suggested that I use OpenXML, and now I'm looking at that.

我的问题是:

我真的可以使用OpenXML实现我的目标吗?

我很难找到所需的方法,例如另存为"

I'm having a hard time finding the methods that I'd expect, such as "save as" here

或者我只是误解了它是如何工作的?

Or perhaps I'm just misunderstanding how it all works?

推荐答案

...将.ppt转换为.pdf. Microsoft自己建议我使用OpenXML ...实际上可以使用OpenXML实现我的目标吗?

要将.ppt转换为.pdf?我很想知道您在哪里读过这本书;-)

For the conversion of a .ppt into .pdf? I'm curious to see where you have read this ;-)

使用OpenXml SDK几乎是不可能的:

No It's just impossible using OpenXml SDK:

  • OpenXml SDK允许创建,修改 OpenXml 文档(在PowerPoint中为.pptx),在这里您正在谈论.ppt(Biff格式)

  • OpenXml SDK permits to create, modify OpenXml documents (.pptx in case of PowerPoint) and here you are talking about .ppt (Biff format)

方法可以转换为 PDF . OpenXml SDK允许在没有Office应用程序的情况下检索,创建,修改文档的内容,但不包含任何呈现文档的方法,或诸如SaveAs() ...

There is NO method for converting as PDF. OpenXml SDK permits to retrieve, create, modify the content of the document Without an Office Application but DOES NOT contain any methods to render it, or such Office Application methods such as SaveAs() ...

不,将Office文档转换为pdf的常见方法是使用Office.Interop.

No, a common way to convert Office documents as pdf is to use Office.Interop.

此线程如何以编程方式将Word文件转换为PDF ?与Word有关,但可以为您提供帮助,与PowerPoint相同.

This thread How do I convert Word files to PDF programmatically? is related to Word but it can help you, it's the same with PowerPoint.

这篇关于使用OpenXML将PowerPoint演示文稿另存为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆