2022.2

Table Of Contents
sheetConfig
SheetconfigurationsettingsaretheMasterPage,MediaandDuplexprintingoptionsof
first/middle/last/singleorallsheetsinaPrintsection.ThesheetConfigobjectholdstheseoptions
andcanbeusedtoset(orrather,override)themviaaControlScript(see"ControlScripts"onpage838
and"ControlScriptAPI"onpage1271).Thisisespeciallyusefulwhenyouneedidenticalsectionswith
differentsheetconfigurationsettings.
ThesheetConfigobjectcanberetrievedviathesectionobject(see"section"onpage1305);see
theexamplebelow.
Fields
ThefieldsofthesheetConfigobjectcorrespondtosettingsintheSheetConfigurationdialog;see
"SheetConfigurationdialog"onpage939.
Field Type Description
duplex
Boolean
Enables or disables duplex (two-sided) printing.
facingPages
Boolean (Onlywithduplexprinting.)WhenfacingPagesissettotrue,themarginsofthesection
switchalternately,sothatpagesareprintedasifinamagazineorbook.
mediaRotation
Number RotatestheMedia(tobemoreaccurate:theVirtualStationeryimagesspecifiedforthis
Media)by0,90,180,or-90degrees.
omitEmptyBackside
Boolean (Onlywithduplexprinting.)ResetsapagetoSimplexifithasanemptybackside.Thismay
reducevolumeprintingcosts.
positions
Positions(see"Pos-
ition"onthenextpage)
UsedtomodifytheMasterPageandMediaandtoallowcontentonsheetsindifferentpos-
itions;forexample:
var section1 = merge.template.contexts.PRINT.sections[0];
section1.sheetConfig.positions.all.media = "Media 1";
Foranoverviewoftheavailablesettingsineachpositionsee"Position"onthenextpage.
Canalsobeusedtorepeatthesheetconfigurationwithinadocument.
tumble
Boolean (Onlywithduplexprinting.)Whentumbleissettotrue,pagesareprintedlikeinacalendar.
(OnPortraitoutput,thiswouldbeequivalenttoshort-edgeduplex.)
Example
Thisscriptretrievesasectionandchangesitssheetconfigurationsettings.
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.duplex = true;
section.sheetConfig.omitEmptyBackside = true;
section.sheetConfig.facingPages = true;
section.sheetConfig.mediaRotation = 0;
Page 1288