HTML Extended: <phpdocx_section> tag

<phpdocx_section> tag

PREMIUM TRIAL / ADVANCED

Inserts a section.

HTML Extended (Premium licenses)

Only one section tag can be added for each embedHTML call.

Attribute Description
data-sectionType

The possible values are:

  • nextPage (default value): the new section starts in a new page
  • nextColumn: the new section starts in the following column
  • continuous: there is no break between sections
  • evenPage: the new section starts in the next available even page
  • oddPage: the new section starts in the next available odd page
data-paperType

The type of paper to be used. The possible values are:

  • A4
  • A3
  • letter
  • legal
  • A4-landscape
  • letter-landscape
  • legal-landscape
  • custom
data-width Section width in twips (twentieths of a point).
data-height Section height in twips.
data-numberCols Number of columns for this section.
data-orient Section page orientation (portrait or landscape).
data-marginTop Top margin for this section in twips.
data-marginRight Right margin for this section in twips.
data-marginBottom Bottom margin for this section in twips.
data-marginLeft Left margin for this section in twips.
data-marginHeader Header margin in twips.
data-marginFooter Footer margin in twips.
data-gutter Gutter in twips (used for binding).
data-bidi Set it to 'on' for right to left languages (default value is 'off').
Code samples

Example #1

The resulting Word document looks like: