title: Is there a way to get sections from an IOFactory?
body: <p>I'm using PHPWord to use a template but when I save my file in HTML format I only see its body and not the header or footer. So I would like to get these sections to insert them in the HTML part</p>
  <pre><code>  $Content = IOFactory::load($saveDocPath); 
    $Writer = IOFactory::createWriter($Content,'HTML');       
    $Writer-&gt;save($savePath); 
  </code></pre>
  <p>if I use dd() I can see the header and footer of the docx file</p>
  <pre><code>#phpWord: PhpOffice\PhpWord\PhpWord {#1299 ▼
      -sections: array:1 [▼
        0 =&gt; PhpOffice\PhpWord\Element\Section {#1493 ▼
          #container: &quot;Section&quot;
          -style: PhpOffice\PhpWord\Style\Section {#1494 ▶}
          -headers: array:1 [▶]
          -footers: array:1 [▶]
          -footnoteProperties: null
          #elements: array:25 [▶]
  </code></pre>