example

  1. <?php
  2.  
  3. /**
  4.  * Create a DOCX file. Footer Paginator example
  5.  *
  6.  * @category   Phpdocx
  7.  * @package    examples
  8.  * @subpackage easy
  9.  * @copyright  Copyright (c) 2009-2011 Narcea Producciones Multimedia S.L.
  10.  *              (http://www.2mdc.com)
  11.  * @license    http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php
  12.  * @version    2.2
  13.  * @link       http://www.phpdocx.com
  14.  * @since      File available since Release 2.2
  15.  */
  16. require_once('../../classes/CreateDocx.inc');
  17.  
  18. $docx new CreateDocx();
  19.  
  20. $docx->addText('Page 1 Content');
  21. $docx->addBreak('page');
  22.  
  23. $docx->addText('Page 2 Content');
  24. $docx->addBreak('page');
  25.  
  26. $docx->addText('Page 3 Content');
  27.  
  28. $paramsFooter array(
  29.     'font' => 'Arial',
  30.     'pager' => 'true',
  31.     'pagerAlignment' => 'right'
  32. );
  33.  
  34. $docx->addFooter('Footer. Arial font'$paramsFooter);
  35.  
  36. $docx->createDocx('example_footer_pager');

Documentation generated on Thu, 02 Jun 2011 16:14:47 +0200 by phpDocumentor 1.4.3