Forum


Replies: 1   Views: 119
How to split table cell or align data to left and right
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 fairshareitservices  · 16-09-2024 - 11:15

I have a requirement where I need to split the table cell based on a certain condition. If spilliting of cell is not possible then can I align some part of the data in the cell to the left and the remaining to the right in one cell

Posted by admin  · 16-09-2024 - 11:37

Hello,

There's no direct method to split a table, but you can use cloneWordContent to clone it and then removeWordContent to remove rows and cells from both tables and get the required output.

If you need to change cell content alignments in an existing DOCX, you can use customizeWordContent.

Regards.