Forum


Replies: 1   Views: 399
Inserting image does not fail but there is no image in the document
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 admin  · 09-10-2023 - 18:48

Hello,

Please note that if the placeholders in the template are using ${ } as template symbols (instead of the default $), setTemplateSymbol must be called before any replacement method:

$docx = new CreateDocxFromTemplate($path);
$docx->setTemplateSymbol('${', '}');

(...)

$docx->replaceVariableByWordFragment...

Regards.