About Arbortext Styler > Defining Page Layout > Defining Page Regions
  
Defining Page Regions
A page region is an area on a page. Page regions can hold document content, generated text, or graphics, or remain empty. By taking into account the order in which regions are laid onto a page, you can define certain page layout effects in a page set.
Once you have defined the regions you would like to appear on a page, you can assign them to a page type to create the overall page layout.
Headers and footers are page regions. Use the Position category for the Page Regions list to place them as headers and footers on the page. Use the Text and Graphic categories to define the information they should display. Please refer to Creating a Header or Footer for further information.
* 
Only page regions that can be identified as headers or footers will be included in RTF output.
Arbortext Styler provides an option to create commonly used page regions via a built in helper. Please refer to Add Page Region for further information.
The steps to creating and using page regions for your page set in the Page Regions list are:
1. Create the page region in the Page Regions list.
2. Configure the background color, position, content, and rotation of the page region.
3. Assign the page region to a page type in the Page Types list so it forms part of a configured page layout. Add page regions in a specific order to ensure any avoid settings are obeyed.
4. Preview the page type with the relevant page set in the Page Types list.
5. Assign the page type to the relevant page set by choosing it to format certain pages within that page set, for example Right pages or First page. Use the Page types category for the Page Sets list.
Example: Creating a Page Region for Document Content
In this example you will create two page regions for the first page formatted by a page set. The first region will hold a graphic and will be placed on the right of the page. The second region will hold document content and its text content will avoid the graphic from the first region.
* 
The option to avoid overlaid regions is only available when you are generating print/PDF output with the PTC ALD engine.
The example assumes that a single sided page set based on the Letter page size (8.5in x 11in) is already available in the stylesheet.
1. In the Page Regions list The Page Regions list icon - a blank page with a red text box at the bottom, create two new Page Region objects using the Insert > Page Region menu option. Name them as required, for example firstpage-graphicfirstpage-content.
2. Configure settings for the region that will hold the graphic:
Position category:
Origin: Top left
X position: 2.5in from left margin
Y position: 3in from top margin
Width: Absolute width 4in
Height: Absolute height 2in
Here you create a region that is 4in wide and 2in high, placed in the center right of a page formatted by a Letter sized page set. The measures assume that the page set has left and right margins of 1in, and top and bottom margins of 1.5in.
Graphic category:
Select the Underlay region text with graphic option.
Use the Browse button to find the graphic you would like to display in the region.
Set the scaling of the graphic as required. For example, select Fit region in the Horizontal scaling or Vertical scaling fields.
Other category:
In the Avoid field, select the Underlaid regions avoid this region option.
This field is only available when your stylesheet is set to generate print/PDF output with the PTC ALD engine.
3. Configure settings for the region that will hold document content:
Position category:
Origin: Top left
X position: 0in from left margin
Y position: 0mm from top margin
Width: Absolute width 6.5in
Height: Absolute height 8in
Here you create a region that is 6.5in wide and 8in high. The region matches the text area of a Letter sized page set that has left and right margins of 1in, and top and bottom margins of 1.5in.
Text category:
In the Type field, select Main Content Flow
4. Navigate to the Page Types list and create a new page type via the Insert > Page Type menu option. Name it as required, for example firstpage-layout
5. Use the Add button to add the page regions firstpage-graphic and firstpage-content to the Page region (front to back) list. Use the up and down arrows to ensure that firstpage-graphic precedes firstpage-content in the list. This will ensure that the document content is laid under the graphic and the avoid settings for the graphic region will be obeyed.
6. Select your Letter sized page set in the Preview with page set field. The properties area will provide a graphical representation of your page set, including the page regions.
7. Navigate to the Page Sets list and select your Letter sized page set.
8. Go to the Page types category. In the First page field, select the page type you just created.
9. Preview your document for print or PDF with the PTC ALD engine. You will see that the first page formatted by your letter sized page set will display document content and the selected graphic.