Prince OfThief
Prince OfThief

Reputation: 6423

C# : How to convert .pptx to images?

How to convert .pptx to images? I want to get the image of each .pptx page

Upvotes: 2

Views: 3233

Answers (2)

Prince OfThief
Prince OfThief

Reputation: 6423

I got it.

string str1 = @"C:\Users\prince\Desktop\PRINCE-PC 11-12-2553 14.07.57\SlideImages";

string str = @"C:\Users\prince\Desktop\PRINCE-PC 11-12-2553 14.07.57\slide.ppt";

Application pptApplication = new Application();
Presentation pptPresentation = pptApplication.Presentations.Open(str, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
pptPresentation.SaveAs(str1, PpSaveAsFileType.ppSaveAsJPG, MsoTriState.msoFalse);
pptPresentation.Close();

str1 = OutputFolder str = powerpoint's filepath

Upvotes: 2

Dani
Dani

Reputation: 15081

I think that one of the options of saving the pretension for the web will create images out of the slides. Check it out.

AT power point 2010 you have save as JPG. it does what you ask.

Upvotes: 1

Related Questions