Forum


Replies: 1   Views: 3109
Header image is not displaying
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by sreekumar  · 19-03-2013 - 06:29

this is the code i copied from ..\phpdocx_free\examples\intermediate\HeaderAndFooter.php

<?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?