Forum


Replies: 1   Views: 1753
Using replacevariablebyhtml() changes the default styling of template variable after substitution.
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 ZooEasy Online Support  · 13-04-2020 - 12:29

When I try to use replaceVariableByHTML() function for substituting the value of the template variable in a docx document, the default styling of template variable is lost in the resultant document when downloaded. The size of the font changes to 12 pt, with Arial font applied by default. On the contrary when I use the function replaceVariableByText() instead, this issue does not occurs.

I am using the PHPDocx version 7.0

Please guide.