Replies: 2   Views: 3465
Add image by addtemplatevariable can't change image size
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 medscope  · 27-11-2012 - 03:45

when add replace template variable with image using
addTemplateVariable('NAME', '../files/img/image.png', 'image'); ,

is there a way to change the image size.

Also, when adding image using this method, the spacing becomes weird.
For example, in the template,






Posted by admin  · 11-04-2013 - 12:13


You can set your image size using a template. But it you want to set it dinamically you should try this method: replaceTemplateVariableByHTML.