title: How to convert Doc files to docx or pdf format using PHPWord?
body: <p>I am trying to convert Doc(resumes)  files to docx or pdf format using PHPWord.I downloaded PHPWord from github.</p>
  
  <p>I tried Below code  </p>
  
  <pre><code>require_once '../PHPWord.php';
  
  $PHPWord = new PHPWord();
  
  $document = $PHPWord-&gt;loadTemplate('Excel2003.doc');
  
  // Save File
  
  $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
  
  $objWriter-&gt;save('Excel2007.docx');
  </code></pre>
  
  <p>But getting error</p>
  
  <pre><code>Warning: include(/var/www/html/PHPWord-develop/src/PhpWord/PHPWord.php): failed to open stream: No such file or directory in /var/www/html/PHPWord-develop/readdoc.php on line 8
  
  Warning: include(): Failed opening '/var/www/html/PHPWord-develop/src/PhpWord/PHPWord.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/PHPWord-develop/readdoc.php on line 8
  
  Fatal error: Class 'PhpOffice\PHPWord' not found in /var/www/html/PHPWord-develop/readdoc.php on line 9
  </code></pre>
  
  <p>What is the solution?</p>
  
  <p>Thanks in advance</p>