2018.1

Table Of Contents
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
page1084 and "Control Script: Setting a Print section's background" on page719).
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
page1100
Set the position of the PDF background (Absolute,
centered, fit to media).
rotation
Number
Set the rotation of the PDFbackground to 0, 90, 180
or -90 degrees.
scale
Number
Set the size of the PDFbackground as a percentage
of the original image.
source
"BackgroundResource"
on page1097
Set the source of the PDF background (NONE,
Datamapper, PDF Resource).
Page 1091