2022.2

Table Of Contents
Position
ThepositionspropertyofthesheetConfigobject(see"sheetConfig"onthepreviouspage)canbe
usedtorepeatthesheetconfigurationafteracertainnumberofpages,ortoretrieveandmodifyset-
tingsforsheetsindifferentpositions.Availablepositionsare:
l
single:Theonlysheetinasection.
l
first:Thefirstsheetinthesection.
l
middle:Allafterthefirstsheetandbeforethelastsheetinasection.
l
last:Thelastsheetinasection.
l
all:Allsheetsinthesection.
Note: Settingsforallsheetsmayconflictwithsettingsforaparticularposition.Insuch
cases,thesettingthatwasspecifiedlastoverridestheother.
Eachofthesepositionshasthefollowingfields.
Field Type Description
allowContent
AllowContent
Used to specify on which sides of a sheet (in a certain position) content is allowed.
Possible values:
l
AllowContent.ALL_SIDES
l
AllowContent.FRONT_ONLY (only with duplex printing)
l
AllowContent.BACK_ONLY (only with duplex printing)
l
AllowContent.NONE (not allowed on all, single and middle positions)
masterBack
String SpecifiestheMasterPagetouseonthebacksideofsheetsinthisposition.
masterFront
String SpecifiestheMasterPagetouseonthefrontofsheetsinthisposition.
media
String SpecifiestheMediatousewithsheetsinthisposition.
repeat
Number Repeatthesheetconfigurationeverynnumberofpages.Thisisusefule.g.whendocumentscanbe
solongthattheycannotfitinoneenvelope.
ToremoveaMediaorMasterPageviascript,giveitthevalueundefined,ornull,oranempty
string("");seetheexamplesbelow.
Examples
ThisscriptretrievesaPrintsectionandmodifiesanumberofsettingsforallofitssheets.
Page 1289