Forum


Replies: 3   Views: 2403
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

Hi

I have code:

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

        $comment->addComment(
            array(
                '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'));
        $docx->createDocx($filename);

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.