Forum


Replies: 3   Views: 3632
Addshape adds extra row after
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 admin  · 18-08-2016 - 13:54

Hello,

All shapes are wrapped by a paragraph tag that adds default Word spacing (you can set a custom spacing using a template). We recommend you to check the sample available on:
http://www.phpdocx.com/api-documentation/word-content/add-shape-Word-document-with-PHP

That adds a shape with its position changed using the option marginTop. You can use this option to accomplish what you need.

About from option, it sets the x and y coordinates. You can also use the width option to set the size of the shape.

Regards.