I have created a template with a header & footer and with custom page layout including margins. When I insert content into the document and createDocx, the header does not look the same as the template. In addition, the page layout is changed - the margins revert to something that looks more like A4. Here is the code:
require_once(ROOT . '\\vendors\\phpdocx\\classes\\CreateDocx.inc');
$docx = new CreateDocx(ROOT . '\\vendors\\phpdocx\\templates\\certificate_tr.docx');
//add main body to document
$docx->addHTML(array('html' => $html));
$docx->createDocx($filepath . $filename);
Am I doing something wrong?