create
[ class tree: create ] [ index: create ] [ all elements ]

example

  1. <?php
  2.  
  3. /**
  4.  * Embed some external HTML content
  5.  *
  6.  * @category   Phpdocx
  7.  * @package    examples
  8.  * @subpackage intermediate
  9.  * @copyright  Copyright (c) 2009-2013 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    2012.12.26
  13.  * @link       http://www.phpdocx.com
  14.  * @since      2012.12.26
  15.  */
  16.  
  17. require_once '../../classes/CreateDocx.inc';
  18.  
  19. $docxnew CreateDocx();
  20.  
  21. $docx->embedHTML('<h1 style="color: #b70000">The Wikipedia Article on the Periodic Table</h1>');
  22.  
  23. $html file_get_contents('http://en.wikipedia.org/wiki/Periodic_table');
  24.  
  25. $docx->embedHTML($htmlarray('parseDivsAsPs' => true'baseURL' => 'http://en.wikipedia.org/''downloadImages' => true'filter' => '#bodyContent'));
  26.  
  27. $docx->modifyPageLayout('A3');
  28.  
  29. $docx->createDocx('../docx/example_embedExternalHTML');

Documentation generated on Mon, 13 Jan 2014 13:44:11 +0100 by phpDocumentor 1.4.4