Replies: 3   Views: 2420
Font size decrements
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 sato2010  · 29-11-2017 - 09:05


I have code:

$docx = new CreateDocxFromTemplate($filename);
        $comment = new WordFragment($docx, 'document');

                'textDocument' => $matchINS[1][$k],
                'textComment' => 'Added: '. $matchINS[1][$k],
                'initials' => 'WS',
                'author' => 'sato',
                'date' => date("j F Y")

        $docx->replaceVariableByWordFragment(array('TGP'.$k.'BEG' => $comment), array('type' => 'inline'));

And after save font-size  decrements after replaced variable, also font-face changed to another. How fix this.

example after replace 

“Test test (101) "

test test test.

Posted by admin  · 29-11-2017 - 09:26


What version and license of phpdocx are you using?


Posted by sato2010  · 29-11-2017 - 09:49

Version 2017.07.10 trial

I need for test. no commerce

Posted by admin  · 29-11-2017 - 11:45


We have done some tests and everything is working fine. After you have purchased a license, please update the topic or send an email to contact[at] and we'll send you a sample to illustrate how to do it (you can also send your custom template and we'll generate the script using it).