Hi
I wonder how I can add a header and a footer from to docx that is html
I found this example:
$docx= new CreateDocx();
$html= '<p style="border: 2px solid black; color: red">A short text with a red border.</p>';
$rawWordML = $docx->embedHTML($html, array('rawWordML' => true, 'target' => 'defaultHeader'));
$html = $docx->createWordMLFragment(array($rawWordML));
$docx->addHeader(array('default' => $html));
$docx->createDocx('example_embedSimpleHTML');
but I got an php error:
Fatal error: Uncaught Error: Call to undefined method CreateDocx::createWordMLFragment()
This example was from 2014 som maybe it has been replaced???
Best Peder