<?php
/**
* Create a DOCX file. Header and footer with font styles
*
* @category Phpdocx
* @package examples
* @subpackage intermediate
* @copyright Copyright (c) 2009-2011 Narcea Producciones Multimedia S.L.
* (http://www.2mdc.com)
* @license LGPL
* @version 2.0
* @link http://www.phpdocx.com
* @since File available since Release 2.0
*/
require_once("C:/xampp/htdocs/phpdocx_demo/phpdocx_free/classes/CreateDocx.inc");
$docx = new CreateDocx();
$paramsHeader = array(
'name' => 'C:/xampp/htdocs/phpdocx_demo/phpdocx_free/files/img/image.png',
'jc' => 'right',
'textWrap' => 5,
'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);
$docx->createDocx('example_header_and_footer');
?>
error: image is not displaying.
what to do?