Forum


Replies: 1   Views: 239
Align textbox with outer text
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 aventyret  · 28-06-2024 - 14:33

When adding textboxes to my document the positioning gets all messed up.
But if I do this:

$docx->addText('my label);
$docx->addTextBox('myval);

The my label appears either above, under or after the textbox. I want it above. I have experimented with 

'relativeToHorizontal'
'relativeToVertical'

and

'position'


If I set a textbox to be displayed in line with text like this-> https://pasteboard.co/p733q4sfbTJ8.png it works perfect. Sorry, I only have Word in Swedish.

How do I make this setting when creating the text box in phpdocx?