Forum


Replies: 1   Views: 2183
Two-column template
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 slavkovl  · 15-11-2019 - 07:47

How can I create two-columns on page avoiding Tables? I am using HTML to DOCX conversion on Advanced license. I have a few options: the whole document can be in two columns with some Headers in the middle, either some parts of the document should be displayed in two columns.

Posted by admin  · 15-11-2019 - 08:46

Hello,

MS Word works with sections to add columns. All contents in the same section use the same number of columns, you can't avoid a specific content to use the columns but creating a new section.

All licenses include the addSection method to generate new sections.

Using HTML, you need to use HTML Extended (https://www.phpdocx.com/documentation/introduction/html-extended-to-word-PHP), available in Premium licenses, to create sections.

For further support, please send to contact[at]phpdocx.com the username or e-mail that purchased the license and a sample DOCX that illustrates the output you want to get.

Regards.