Using replacevariablebyhtml to generate a document with a centered image does not seem to work.
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.
So the code changes works to center the image, however when there's text following the image, after generating the document using PHPDOCX, the text that follows the image is wrapped around it.