News

Adding HTML to a docx document in PHPdocx

  • May 03, 2011

This information is outdated, please, refer to the HTML to Word documentation for up to date info.
You can also add HTML to a docx document using $html in a very simply way:


require_once('../../classes/CreateDocx.inc');

$docx = new CreateDocx();

$html= 'This will insert the name in the document:
My name';

$docx->addHTML($html);

$docx->createDocx('example_html');