News
Insert an external docx within your Word document with PHPdocx
- Jun 03, 2011
This information is outdated, please, refer to the addDOCX documentation for up to date info.
This cool feature is available since PHPdocx 2.3.
You may use this method to add large chunks of content to your Word document with just a single line of code:
require_once '../../classes/CreateDocx.inc';
$docx = new CreateDocx();
// Opening the import of a docx document
$docx->addText('DOCX content');
// Route to the document
$docx->addDOCX('../files/Text.docx');
// Close the import
$docx->addText('End DOCX content');
$docx->createDocx('example_docx');