Forum


Replies: 2   Views: 2697
Print out blank rather than $var$
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  · 30-01-2018 - 18:32

Hello,

We recommend you to set values for all placeholders. You can set an empty blank space or a WordFragment with an empty paragraph when you don't want to set a value.

Or you can replace the placeholders and then use the removeTemplateVariable to remove the remaining ones. If you don't know the name of the remaining placeholders you can use the getTemplateVariables method.

Regards.