Replies: 3   Views: 924
Pstyle is not adapted correctly randomly
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 Robin  · 24-08-2021 - 14:14

I am using the latest phpdocx trial version.

As already mentioned, it happens very randomly. Sometimes I have to execute the script multiple times with the same docx and then it works. 

$docx->addText($string, array('pStyle' => 'berschrift1'));