Hi there,
When I'm not using a template, I can set my header like (with an image included) :
$headerImage = $docx->addImage(array('name' => $pathImage, 'dpi' => 300, 'rawWordML' => true, 'target' => 'defaultHeader'));
$myImage = $docx->createWordMLFragment(array($headerImage));
$docx->addHeader(array('default' => $myImage));
And when I add my Template using $docx->addTemplate ... it does not work anymore. Even if I don't replace any variables. Do you have any suggestion on how can I use addHeader and addFooter also using enableComaptibilityMode in ordre to get Headers&Footers on my pdf ?
Thanks,
Nicolas
Details : i'm using the last version *I guess* of PhpDocx downloaded and installed last week.