Forum


Replies: 11   Views: 3576
Merge documents
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by MVa  · 11-04-2013 - 12:13

Hi,

[u][i][b]this simple code doesn't work[/b][/i][/u]

include_once('./helpers/phpdocx/classes/CreateDocx.inc');
$NomDocument = 'blabla';
$folder = "";

$docx = new CreateDocx();
$docx->setEncodeUTF8();
$Template = "doctmp.docx";
$docx->addTemplate($Template);
$docx->createDocx('tmpdoc');

$docx = new CreateDocx();
$docx->setEncodeUTF8();
$docx->addText('2 DOCX content');
$docx->createDocx('doctmp');


$docx = new CreateDocx();
$docx->setEncodeUTF8();
$docx->addText('DOCX content');
$docx->addDOCX('tmpdoc.docx');
$docx->addDOCX('doctmp.docx');
$docx->addText('reDOCX content');
$docx->createDocx($NomDocument);

[u][b][i]Using addtemplate is the problem
same code without addtemplate work fine[/i][/b][/u]

Do you know this issue ?

thx