Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert PowerPoint (.ppt, .pptx) to several images of each slide?

Do you guys have some .Net libraries which has ability to convert a PowerPoint Presentation file into images?

like image 285
Gramero Avatar asked Nov 30 '10 17:11

Gramero


People also ask

Can you convert PowerPoint slides to images?

Click to open the Save as Type drop-down menu. Select one of the following image formats for your slide. Click Save. Review the PowerPoint dialog box, and select Just This One to save your selected slide as an image.

How do I save multiple slides from PowerPoint as a picture?

Export entire slides as images. Open the PPT file and select File > Save As. In the Save As window, select an image format from the Save As Type drop-down list. Select All Slides to export the entire PPT file or Just This One to export the selected slide.


2 Answers

Using add reference to Microsoft.Office.Interop.PowerPoint.dll. To convert PowerPoint slides to PNG images:

PowerPoint.Presentation pptPresentation = pptApplication.Presentations.Open2007(FILE);
foreach (PowerPoint.Slide pptSlide in pptPresentation.Slides)
{
   pptSlide.Export(NEWNAME, "PNG", 1024, 768);
}
like image 107
Mohammed Thabet Avatar answered Nov 14 '22 22:11

Mohammed Thabet


do check PPT slides to images

https://stackoverflow.com/questions/733347/is-it-possible-to-convert-powerpoint-to-images-programatically

like image 44
Singleton Avatar answered Nov 14 '22 21:11

Singleton