title: Convert Word doc, docx and Excel xls, xlsx to PDF with PHP
body: <p>I am looking for a way to convert Word and Excel files to PDF using PHP.</p>
  <p>The reason for this, is I need to be able to combine files of various formats into one document. I know that if I am able to convert everything to PDF I can then merge the PDFs into one file using PDFMerger (which uses fpdf).</p>
  <p>I am already able to create PDFs from other file types / images, but am stuck with Word Docs. (I think I would possibly be able to convert the Excel files using the PHPExcel library that I already use to create Excel files from html code).</p>
  <p>I do not use the Zend Framework, so am hoping that someone will be able to point me in the right direction.</p>
  <p>Alternatively, if there is a way to create image (jpg) files from the Word documents, that would be workable.</p>