Hello,
By default, all contents are added at the end of the document.
For example, generating a new DOCX with a text and an image:
$docx = new CreateDocx();
$docx->addText('My paragraph');
$docx->addImage(array('src' => 'image.png'));
And the same using an existing DOCX:
$docx = new CreateDocxFromTemplate('document.docx');
$docx->addText('My paragraph');
$docx->addImage(array('src' => 'image.png'));
When you use an existing DOCX with CreateDocxFromTemplate all contents are kept. New contents are added at the end of the document using methods such as addText or addImage.
Regards.