2018.2

Table Of Contents
What to use a Control Script for
Control Scripts let you change the way a template is merged, by giving access to the template
with all its contexts and sections in a script. A Control Script may, for example, omit, group and
clone sections; add a background to a Print section; or add a header to an email. A number of
the things that you can do with them is listed in the table below, with a link to a topic that
explains how to do it and that shows what the script should look like.
In a Control Script, section usually is the most important object. To get a quick overview and
lots of examples, see "section" on page1196. For help on specific tasks, see the table below.
Task See topic Field/function of
section object
Change the page numbering
of Print sections
"Control Script: Page
numbering" on the facing page
restartPageNumbering
Set the background image of
a Print section
"Control Script: Setting a Print
section's background" on
page759
background.source,
background.url,
background.position
Split and rename Print email
attachments
"Parts: splitting and renaming
email attachments" on
page756
part
Dynamically set a password
on PDF attachments
"Control Script: Securing PDF
attachments" on page764
password,
ownerPassword
Include/exclude sections:
l Conditionally omit
sections
l Output one section or
another, based on the
value of a data field
l Select one print section
as PDF attachment if the
output is to be emailed,
Use a Conditional Print
Section script to in-/exclude a
Print section based on a
simple condition; see "section"
on page1196
In all other cases take a look at
the examples in the following
topic: "section" on page1196.
enabled
Page 753