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.
Asked
Active
Viewed 4,734 times
2 Answers
1
Pptx file already have it, unziping the file you can find id. ;)
Fabio
- 818
- 2
- 12
- 27
-
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 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
0
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
- 126,861
- 25
- 221
- 322
-
Thanks - yes I have read about the ASPOSE library. I was hoping to be able to code it manually and not have to purchase that product. – Corey Burnett Jun 21 '12 at 20:49
-