HTML Extended: <phpdocx_modifypagelayout> tag

<phpdocx_modifypagelayout> tag

PREMIUM TRIAL / ADVANCED

Modifies the Word document layout.

HTML Extended (Premium licenses)
Attribute Description
data-paperType

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

  • A4
  • A3
  • letter
  • legal
  • A4-landscape
  • A3-landscape
  • letter-landscape
  • legal-landscape
  • custom
data-width Document width in twips (twentieths of a point).
data-height Document height in twips (twentieths of a point).
data-numberCols Number of columns.
data-orient Page orientation (portrait or landscape).
data-marginTop Top margin in twips (twentieths of a point).
data-marginRight Right margin in twips (twentieths of a point).
data-marginBottom Bottom margin in twips (twentieths of a point).
data-marginLeft Left margin in twips (twentieths of a point).
data-marginHeader Header margins in twips (twentieths of a point).
data-marginFooter Footer margins in twips (twentieths of a point).
data-gutter Gutter in twips (twentieths of a point). The gutter is only used for binding.
data-bidi Set it to 'on' for right to left languages (default value is 'off').
data-rtlGutter Set it to 'on' for right to left languages (default value is 'off').
data-onlyLastSection If true it only modifies the last section (default value is false).
Code samples

Example #1

The resulting Word document looks like: