Replies: 13   Views: 854
Add section and change page orientation with htmlextended
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  · 23-05-2019 - 08:14


The problem is that your sample is not using the correct tag. On you can read the list of supported contents and their default tags (that can be overwriten if needed).

For example, to generate a new section you need to use the following tag:

<phpdocx_section data-sectionType="nextPage" data-paperType="A3-landscape" />

This is using phpdocx_section (not phpdocx_addSection). Also please note you need to use data-paperType (not dataPaperType as your code is using).

In the samples included in the Premium package you can find a script that creates a section with HTML Extended: sample_6.php