title: How can I take preview of documents?
body: <p>I'm working on a file sharing website, I need a way to take screenshots of the uploaded documents.</p>
  
  <p>The site will support several file formarts, from plain text to office documents (doc, xls, ppt, ...), videos (mpeg, avi, ...), images (jpg, gif, png, ...) PDF's, Open Office, etc.</p>
  
  <p>Each document need to have a "preview" of it, the good part is that the client wants the following formats to have previews: doc, xls, ppt and pdf. The other files format are optionals, they'll have preview if I can find a way to take them.</p>
  
  <p>Additionally, the images are not a problem because I just need to include a thumbnail in the preview. Also I will use FFMPEG for converting videos to FLV so I can use it for taking screenshots of the videos too. </p>
  
  <p>I was thinking in using <a href="http://www.artofsolving.com/opensource/jodconverter" rel="noreferrer">JODconverter</a> which supports Office and Open Office formats, I don't know if it converts to JPG but at least it converts to PDF which is somenthing.
  The site is being build in PHP under Drupal 5 running in a dedicated Debian server so in case that I choose JOD I'll use it as a webservice running in a virtual server in the same machine.</p>
  
  <p>Does anybody knows a better application or method for converting files to images?</p>
  
  <p>Any help will be greatly appreciated, thanks in advance!</p>
  
  <p>Javier</p>