2018.2

Table Of Contents
Task See topic Field/function of
section object
output is to be emailed,
and another Print section
if the output is to be
printed.
Add sections dynamically
"Dynamically adding sections
(cloning)" on page379.
clone()
Add a header to an email
"section" on page782,
example: "Adding custom
ESP handling instructions" on
page812.
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 page764
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369 and
"Control Script API" on page749. If you don't know how to write scripts, see "Writing your own
scripts" on page340.
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.
Page 372