title: How to create thumbnail of Word doc when it doesn’t have one saved?
body: <p>I want to create a COM dll that will take any Word file and generate an image file of the first page of the document. I have already done this using the IExtractImage functionality of the Windows SDK, but this only works if there is a thumbnail saved with the file. (Since the Word user has to make an extra effort to save the thumbnail by going down into the Advanced options of the Prepare | Properties dialog, most Word docs don’t have a preview available.)</p>
  
  <p>(Unfortunately I am stuck with using COM because I am integrating this solution with an existing ASP web app that does not interact well with .NET.)</p>
  
  <p>One approach I am considering is using a PDF-generating SDK to generate a PDF of the file, or ideally a PDF of just the first page of the file, and then generate the preview image from the PDF. (I don’t have access to Adobe’s proprietary PDF SDK, but if it could be shown to work well for this solution, I would look into purchasing a license.)</p>
  
  <p>Ideally I would like to be able to generate a preview of many other (non-image) file types besides just a Word doc.</p>
  
  <p>I notice that Google now provides a preview of many kinds of files, and I am wondering what approach they have used.</p>
  
  <p>Any thoughts, clues, suggestions, and/or insults are welcome.</p>
  
  <p>Thanks.</p>