Change page size (W)

Modified on Mon, 5 Oct at 1:53 PM

BaseExtensions can be used to change the size of pages in Word. This feature can be used alone or in conjunction with landscape pages.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\65_W_changePagesize.xml

CMD

<Cmd case="BaseExtensions:change-page-size" size1="x" size2="x" nextSec="x"/>

Parameters:

size1

The first paper size that the document should change to. This must be defined with a size from this site, e.g. "wdPaperA3".

size2

The second paper size that the document should change to. Just like above, this parameter must be defined with a size from this site.

nextSec

If this parameter is set to true, it will set the selection to next section. This must be used in conjunction with the landscape-pages command. In this way, it landscapes the next page and sets the selection (where the cursor is placed) to the landscaped page.

If this parameter is set to false, or is not present in the command, the selection will not move. Thus, the page size will be toggled at the current section.

allsec

If this parameter is set to true, it sets page size for all sections in the document, but only if the parameter nextSec is false or not used.

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.

keepmargins

Define this parameter to be true if the command should keep all margins when changing the page size. If false margins will transpose. Mostly relevant in cases where page orientations is altered.

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