Forum


Replies: 4   Views: 395
Using vertical text with textdirection on paragraphs
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 dpassola  · 22-12-2023 - 09:46

We want to create a table with vertical text heading, meaning that the text of the first row is viertical oriented to the right. We can achieve this by either, creating and html table and setting attributes dir="tbLrV", or creating a paragraph and setting the option "textDirection" to "tbLrV". Both ways do create vertical text inside the cell, but the text breaks line multiple times because the cell height is tiny by default. Is there a way to tell the cell to expand to the text inside, even if it is vertical text? Or do we have to set an specific height to the cells?