Forum


Replies: 7   Views: 6185
Image in templage : size change
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 jorgelj  · 10-07-2013 - 08:51

Hello,



Another solution for addTemplateImage is that you can set width, height and dpi using custom values. For example:



* width (mixed): the value in cm (float) or 'auto' (use image size)

* height (mixed): the value in cm (float) or 'auto' (use image size)

* dpi (int): dots per inch. This parameter is only taken into account if width or height are set to auto.



public function addTemplateImage($var, $pathImage, $options = array())



and the same in addImage. If you're using HTML you can set width and height in image tag.



Regards.