About this article
This article will explain what the page setup setting is and provide examples of how it can be utilized with the binding syntax in smart templates.
Prerequisites
|
What is the page setup setting?
The page setup allows controlling the settings available in Word in Layout > Page Setup. These settings help adjust the general setup of the document such as the orientation, the margins, the width and height, and more. The Page setup can be set statically by inputting a specific language or dynamically by utilizing the binding syntax.
|
How to set the proofing language setting in a smart template?
When building the template settings and properties, the Page Setup
setting can be utilized to set the document name for the smart template. Setting the Page Setup
setting can be achieved by following these steps:
- In the Template Designer, navigate to the
Advanced
tab - Click
Add property
- Select
Page Setup
in theType
dropdown - Fill in the following fields
Top/Right/Bottom/Left Margin
expected in centimetersGutter
expected in centimetersGutterPosition
expected to be either {{GutterPosition.Left}} or {{GutterPosition.Top}}Orientation
expected to be either {{Orientation.Portrait}} or {{Orientation.Landscape}}Header/Footer From Edge
expected in centimeters
- Optionally, set an additional option to the setting
Disable updates
: Disallow the setting from being updated after its generation when edited by the user through the document content updater. This option will not be visible if the document content updater is not enabled on the smart template.
- Click
Add to document
- The
Page Setup
setting will be added to the smart template
- The
|
Page setup setting examples
Example 1
Using the Page Setup
setting to statically set a standard A4 page layout.
Top Margin | "2.54 cm" | ||
Right Margin | "2.54 cm" | ||
Bottom Margin |
"2.54 cm" |
||
Left Margin | "2.54 cm" | ||
Gutter | "0 cm" | ||
Gutter Position | {{GutterPosition.Left}} | ||
Orientation | {{Orientation.Portrait}} | ||
Paper Width | "21 cm" | ||
Paper Height | "29.7 cm" | ||
Header From Edge | "1.25 cm" | ||
Footer From Edge | "1.25 cm" |
Example 2
Using the Page Setup
setting to statically set a standard Letter (US) page layout.
Top Margin | "2.54 cm" | ||
Right Margin | "2.54 cm" | ||
Bottom Margin |
"2.54 cm" |
||
Left Margin | "2.54 cm" | ||
Gutter | "0 cm" | ||
Gutter Position | {{GutterPosition.Left}} | ||
Orientation | {{Orientation.Portrait}} | ||
Paper Width | "21.59 cm" | ||
Paper Height | "27.94 cm" | ||
Header From Edge | "1.25 cm" | ||
Footer From Edge | "1.25 cm" |
Example 3
Using the Page Setup
setting to dynamically set the page orientation based on the "Orientation" dropdown question originating from the response form
- If "Portrait" is chosen, the width will be set to 21 cm and the height to 29.7 cm
- If "Landscape" is chosen, the width will be set to 29.7 cm and the height to 21 cm
PageSetup data source:
Top Margin | "2.54 cm" | ||
Right Margin | "2.54 cm" | ||
Bottom Margin |
"2.54 cm" |
||
Left Margin | "2.54 cm" | ||
Gutter | "0 cm" | ||
Gutter Position | {{GutterPosition.Left}} | ||
Orientation | {{Orientation.Portrait}} | ||
Paper Width | {{Form.Orientation.PaperWidth}} | ||
Paper Height | {{Form.Orientation.PaperHeight}} | ||
Header From Edge | "1.25 cm" | ||
Footer From Edge | "1.25 cm" |
Related articles
Comments
0 comments
Article is closed for comments.