1.4

Assume that a template has four sections in the Print context and a Control Script sets the page
numbering as follows:
1. Section A (1 page) restartPageNumber = true
2. Section B (1 page) restartPageNumber = true
3. Section C (1 page) restartPageNumber = false
4. Section D (1 page) restartPageNumber = true
the page numbering in the output will be:
1. Section A page 1
2. Section B page 1
3. Section C page 2
4. Section D page 1
Note that even if a section is not enabled, its restartPageNumber flag is still taken into account
for composing the page number sequences. So, if the restartPageNumber flags are set as
follows:
1. Section A (1 page) restartPageNumber = true
2. Section B (2 pages) restartPageNumber = false
3. Section C (3 pages) restartPageNumber = true, enabled = false
4. Section D (4 pages) restartPageNumber = false
the page numbering in the output will be:
1. Section A page 1
2. Section B page 2
3. Section D page 1 (page numbering is restarted due to section C's restartPageNumber =
true)
This allows a first section in a page sequence range to be optional without further scripting.
To mimic behavior of earlier software versions each section has restartPageNumber = true by
default when the first control script runs.
Parts: splitting one generated document into multiple files
In a Control Script, parts can be defined to determine which sections should be output to the
same file. This way it is possible, for example, to split the Print context or the Web context into
multiple email attachments.
Page 390