2022.2

Table Of Contents
Task See topic Field/function of sec-
tion object
Dynamicallysetapass-
wordonPDFattachments
"ControlScript:SecuringPDFattachments"onpage849 password,ownerPassword
Include/exclude sections:
l
Conditionallyomit
Print,Webor
Emailsections
l
Outputonesec-
tion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,and
anotherPrintsec-
tioniftheoutputis
tobeprinted.
UseaConditionalPrintSectionscripttoin-/excludeaPrintsection
basedonasimplecondition;see"section"onpage1305
Inallothercasestakealookattheexamplesinthefollowingtopic:
"section"onpage1305.
enabled
Copy and add sections
dynamically
"Dynamicallyaddingsections(cloning)"onpage846.
clone()
Addaheadertoanemail "section"onpage1305,examples:"AddingcustomESPhandling
instructions"onpage1345.
headers
SetthemarginsofaPrint
sectionorMasterPage
"margins"onpage1311
margins
SetaMaster Page,Media,
orDuplexprintingfora
Printsection
"sheetConfig"onpage1288
sheetConfig
Repeatthesheetcon-
figurationafteranumberof
pages
"sheetConfig"onpage1288
sheetConfig.positions.repeat
Dynamicallychangethe
page sizeofprintsections
andmedia
"section"onpage1305,"media"onpage1276
Note:WhenaControlScriptchangesthesizeofasection,it
shouldalsochangethesizeofthelinkedMedia;thisisnotdone
automatically.Whiletheoutputmaystilllookgood,asizemismatch
cancauseanissueifascriptoranothercomponentassumesthat
themediasizematchesthesectionsize.
Incaseofasizemismatchapreflightwillshowawarning(see
"DoingaPreflight"onpage818).
height,width
Page 840