title: Unable to download word docx using PHPWord TemplateProcessor
body: <p>I can generate download a word document generated from scratch using PHPWord:
  Create the PhpWord object:</p>
  
  <pre><code>$phpWord = new \PhpOffice\PhpWord\PhpWord();
  </code></pre>
  
  <p>add sections and rows (ommitted) and create the header:</p>
  
  <pre><code>$datetime = date('Y_M_d_G_i');
  $filename = 'receipt_' . $datetime . '.docx';
  header("Content-Description: File Transfer");
  header('Content-Disposition: attachment; filename="' . $filename . '"');
  header('Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
  header('Content-Transfer-Encoding: binary');
  header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  header('Expires: 0');
  </code></pre>
  
  <p>create a writer out of the phpWord object:</p>
  
  <pre><code>$xmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
  </code></pre>
  
  <p>write to output:</p>
  
  <pre><code>$xmlWriter-&gt;save("php://output");
  </code></pre>
  
  <p>What I have failed to do is download a document from a template on the server:
  Creating the TemplateProcessor works: No errors and PHP recognizes $templateProcessor as an object of that class:</p>
  
  <pre><code>$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(asset_url() . 'templates/receipt_template.docx');
  </code></pre>
  
  <p>But I cannot work out how to write to output. If I could generate a PhpWord object then I could use the IOFactory:: createWriter method, but TemplateProcessor does not have methods that return a PhpWord object. </p>
  
  <p>The closest I can get is to attempt to create a $phpWord document out of the IOFactory::load.  But this just creates a blank document</p>
  
  <pre><code>$phpWord = \PhpOffice\PhpWord\IOFactory::load($templateProcessor-&gt;save());
  </code></pre>