2

Is there any way to use the OpenXML library to automatically create a thumbnail image for a PPTX file? I am building a small C# ASP.NET web application that is used to build PPTX files from a library of PPTX files. One of the requirements is to show a thumbnail image for each PPTX file in the library. I would like to automate this as the people that will be using the system don't know how to create screen shots.

Corey Burnett
  • 7,312
  • 10
  • 56
  • 93

2 Answers2

1

There's a commercial library available that can generate thumbnails of slides in presentations. So at least you know it's possible: http://www.aspose.com/docs/display/slidesnet/Creating+Slides+Thumbnail+Image

Dai
  • 141,631
  • 28
  • 261
  • 374
1

Pptx file already have it, unziping the file you can find id. ;)

Fabio B.
  • 970
  • 2
  • 14
  • 29
  • Just had a look at a couple of pptx files. Some of them seem to have it, others don't; haven't yet worked out what causes the thumbnail to be created or skipped, though, or how to build one if it's missing... – tobriand Jun 23 '14 at 16:21
  • Can you reference the PowerPoint dll in your web app instead of using OpenXml? If yes this could be a way... http://stackoverflow.com/questions/2972263/ppt-slides-to-images – Fabio B. Jun 25 '14 at 08:01
  • @tobriand: as it can be read here `https://msdn.microsoft.com/en-us/library/dd721893%28v=office.12%29.aspx` it seems like you have to enable preview screenshot when saving the presentation. – Tobias May 21 '15 at 06:32
  • Thanks Tobias! That answers my outstanding question. Of course in the end the project took a step further, wanting to be able to preview a number of slides, so ended up having to – tobriand May 22 '15 at 07:57
  • once the file is unzipped, where are the thumbnails located? – Boosted_d16 Aug 19 '19 at 14:08