2018.2

Table Of Contents
Task See topic Field/function of
section object
and another print section
if the output is to be
printed.
Add sections dynamically
"Dynamically adding sections
(cloning)" on page761.
clone()
Add a header to an email
"section" on page1196,
example: "Adding custom ESP
handling instructions" on
page1233.
headers
Set the margins of a Print
section or Master Page
margins
margins
Set a Master Page, Media, or
Duplex printing for a Print
section
"sheetConfig" on page1179
sheetConfig
Control Script: Page numbering
This topic explains how to write a Control Script that changes the page numbering in Print
sections. Note that when you add a Control Script, it already contains a script to make the page
numbering continue over all Print sections.
For information about Control Scripts in general, see "Control Scripts" on page751 and
"Control Script API" on page1162. If you don't know how to write scripts, see "Writing your own
scripts" on page722.
How to change page numbering in a control script
A Control Script can make the page numbering continue over all Print sections or let it restart
on a section. This is done by setting the restartPageNumber field on a section to true or false.
For example: merge.template.contexts.PRINT.sections['Section 2'].restartPageNumber =
true;. (Also see "section" on page1196 and "Control Script API" on page1162.)
Page 754