Forum


Replies: 4   Views: 4150
Font size issue when using replacevariablebyhtml
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 nicks  · 01-11-2015 - 17:00

Just to follow this one up, I found that the replaceVariableByHTML method would default to the Word document font if I set the strictWordStyles to true. e.g.

$docx->replaceVariableByHTML(Test', 'block',$TestWording, array('isFile' => false, 'parseDivsAsPs' => true, 'downloadImages' => true, 'strictWordStyles' => true)