example

  1. <?php
  2.  
  3. /**
  4.  * Create a DOCX file. Endnote and footnote example
  5.  *
  6.  * @category   Phpdocx
  7.  * @package    examples
  8.  * @subpackage intermediate
  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    1.8
  13.  * @link       http://www.phpdocx.com
  14.  * @since      File available since Release 1.8
  15.  */
  16. require_once('../../classes/CreateDocx.inc');
  17.  
  18. $docx new CreateDocx();
  19.  
  20. $docx->addEndnote(
  21.     array(
  22.         'textDocument' => 'Lorem ipsum dolor sit amet',
  23.         'textEndNote' => 'endnote'
  24.     )
  25. );
  26.  
  27. $docx->addFootnote(
  28.     array(
  29.         'textDocument' => 'Lorem ipsum dolor sit amet',
  30.         'textEndNote' => 'footnote'
  31.     )
  32. );
  33.  
  34. $docx->createDocx('example_endnote_footnote');

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