2022.1

Table Of Contents
Dynamic Sheet Configuration Settings
A common requirement for dynamic print templates is the ability to switch between simplex and
duplex. Typically this is solved by duplicating a Print Section, enabling Duplex in the Sheet
Configuration dialog and then switching between the simplex and duplex sections by Control
Script (or through the Conditional Print Section wizard).
In Connect 2018.2 new scripting commands have been added to dynamically set Sheet
Configuration options from within a Control Script. This allows you to set the Duplex mode
dynamically, or do things such as applying a different Master Pages based upon the data, or
omitting empty sides from the last sheet, or single sheets.
The following Control Script sample enables Duplex mode for "Section 1":
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.duplex = true;
The following snippet sets the media and the master pages for the all sheet postions of
"Section 1":
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.positions.all.media = "My Media";
section.sheetConfig.positions.all.allowContent = AllowContent.ALL_SIDES;
section.sheetConfig.positions.all.masterFront = "My Master Page";
section.sheetConfig.positions.all.masterBack = null;
Performance Improvements
l Job Creation: Improved job creation speeds. This is particularly the case with any job
creation that involves any processing, including filtering, grouping or sorting. (SHARED-
50328)
l Output:Improved memory handling, leading to even better stability.
Page 1139