Landscape pages (W)

Modified on Mon, 5 Oct at 1:54 PM

BaseExtensions can be used to adjust the pages in a document in Word.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\11_W_landscapePages.xml

Configuration

Landscape or portrait page

This command insert a new page and sets the orientation.

<Cmd case="BaseExtensions:landscape-pages" orientation="x"/>

Parameters

orientation

portrait

Sets the orientation as portrait.

landscape

Sets the orientation as landscape.

firstPage

Define whether the orientation is for the first page in the document. Define to be false if not. It is not necessary to use this parameter if it should be true as it is default.

margins

Takes the values as top, right, bottom and left margin, e.g.: margins="2|1|2|3" (top|right|bottom|left). To retain the margins of the existing page transpose should be used as the value.

pageAfter

Define to be true if inserted page should be inserted after page where cursor is placed. If false inserted page will divide content on current page, moving all subsequent content after cursor placement to a page after inserted page.

linkToPrevHeader

Define whether the inserted page should be linked to previous header using true or false.

linkToPrevFooter

Define whether the inserted page should be linked to previous footer using true or false.

tablePrefWidthHeader

Define the preferred width of a table in the header in cm.

tablePrefWidthFooter

Define the preferred width of a table in the footer in cm.

NextSecLinkToPrevHeader

Define whether the section following the inserted page should be linked to previous header using true or false. Requires base extensions 21.1.4.3 or greater.

NextSecLinkToPrevFooter

Define whether the section following the inserted page should be linked to previous footer using true or false. Requires base extensions 21.1.4.3 or greater.

headerTablePosition

This parameter is linked to the headerTablePositionRelation parameter below.

These two parameters control the horizontal position of a table in the header of inserted landscape or portrait page.

NB. Using this parameter will unlink sections and overrule linkToPrevHeader and NextSecLinkToPrevHeader parameters.

Values can be Left, Right, Center, Inside or Outside.

headerTablePositionRelation

This parameter is linked to the headerTablePosition parameter above.

Values can be Margin, Page or Column.

NB. Using this parameter will unlink sections and overrule linkToPrevHeader and NextSecLinkToPrevHeader parameters.

Toggle orientation

This command toggles the orientation of the active section.

<Cmd case="BaseExtensions:toggle-landscape"/>

Parameters

margins

Takes the values as top, right, bottom and left margin, e.g.: margins="2|1|2|3" (top|right|bottom|left). To retain the margins of the existing page transpose should be used as the value.

linkToPrevHeader

Define whether the page should be linked to previous header using true or false.

linkToPrevFooter

Define whether the page should be linked to previous footer using true or false.

tablePrefWidthHeader

Define the preferred width of a table in the header in cm.

tablePrefWidthFooter

Define the preferred width of a table in the footer in cm.

headerTablePosition

This parameter is linked to the headerTablePositionRelation parameter below.

These two parameters control the horizontal position of a table in the header of inserted landscape or portrait page.

NB. Using this parameter will unlink sections and overrule linkToPrevHeader and NextSecLinkToPrevHeader parameters.

Values can be Left, Right, Center, Inside or Outside.

headerTablePositionRelation

This parameter is linked to the headerTablePosition parameter above.

Values can be Margin, Page or Column.

NB. Using this parameter will unlink sections and overrule linkToPrevHeader and NextSecLinkToPrevHeader parameters.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article