How would i add an image in header and footer?
i have tried following example but it didn't work.it generates the word file without image in header.
require_once '../../classes/CreateDocx.inc';
$docx = new CreateDocx();
$paramsHeader = array(
'name' => '../files/img/image.png',
'jc' => 'right',
'font' => 'Arial'
);
$docx->addHeader('Header Arial', $paramsHeader);
$paramsHeader = array(
'font' => 'Times New Roman'
);
$docx->addHeader('Header Times New Roman', $paramsHeader);
$paramsFooter = array(
'pager' => 'true',
'pagerAlignment' => 'center',
'font' => 'Arial'
);
$docx->addFooter('Footer Arial', $paramsFooter);
$paramsFooter = array(
'font' => 'Times New Roman'
);
$docx->addFooter('Footer Times New Roman', $paramsFooter);
$docx->createDocx('../docx/example_header_and_footer');
Please HELP!!!
Thanks