user773737
user773737

Reputation:

Using OpenXML to save a PowerPoint presentation as a PDF

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.

My question is:

Can I actually achieve my objective using 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?

Upvotes: 4

Views: 4481

Answers (1)

Chris
Chris

Reputation: 8647

... to turn a .ppt into a .pdf. Microsoft themselves suggested that I use OpenXML ... Can I actually achieve my objective using OpenXML?

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

No It's just impossible using OpenXml SDK:

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

  • 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() ...


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

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.

Upvotes: 3

Related Questions