1.8

Table Of Contents
addPolicy('a');
}
if(record.fields.policy_b == 1) {
addPolicy('b');
}
function addPolicy(policy){
var resourceUrl = 'images/policy-' + policy + '.pdf';
var clone = printSections["Policy"].clone();
clone.name = "policy_" + policy;
clone.background.url = resourceUrl;
clone.enabled = true;
printSections["Policy"].addAfter(clone);
}
background
The background object holds the PDF background of a Print section (see "section" on
page936). For examples, see "Control Script: Setting a Print section's background" on
page653.
Fields
Field Type Description
allPages Boolean
Show all pages from the PDF.
end Number The end page of the PDF to use as a background for
the section.
left Measurement The left offset of the PDF background (only when
absolute positioning is selected).
position "MediaPosition" on
page951
Set the position of the PDF background (Absolute,
centered, fit to media).
source
"BackgroundResource"
on page948
Set the source of the PDF background (None,
Datamapper, PDF Resource).
start Number The start page of the PDF to use as a background
for the section.
Page 943