title: Generating JPG's from office files (.doc .ppt etc) using PHP
body: <p>I'm building an application where people can upload files and share them with other people. Part of what we are looking to do is allow people to preview the file on-line. </p>
  
  <p>Is there a strait forward way to generate a jpgs for the first X amount of pages from a document? We could then place these jpgs in the web page allowing the user to preview. </p>
  
  <p>I have looked at installing open office on the server but was hoping there was a php library somewhere that does the same job. </p>
  
  <p>Can anybody help?</p>
  
  <p>Cheers</p>
  
  <hr>
  
  <p>Btw, doesnt have to be jpg, any image file would be fine (actually even pdf would be ok)</p>