2018.1

Table Of Contents
Field Type Description
Note
Setting the background to NONE does not
reset any other option, such as the position
and scale of the background.
start Number The start page of the PDF to use as a background
for the section.
top
Measurement
The top offset of the PDF background (only when
absolute positioning is selected).
url String The location of the PDF to use as a background for
the section. For a file named background.pdf, stored
inside the template resources, the url would be
images/background.pdf.
The complete syntax for an external file
is:ī˜ƒfile://<host>/<path>. If the host isī˜ƒ"localhost", it
can be omitted, resulting inī˜ƒfile:///<path>, for
example:
file:///c:/resources/images/image.jpg
.
Example
This scripts sets a background on a Print section using absolute positioning.
var activeSection = merge.template.contexts.PRINT.sections['Section
1'];
activeSection.background.source = BackgroundResource.RESOURCE_PDF;
activeSection.background.url = "images/somepage.pdf";
activeSection.background.position = MediaPosition.ABSOLUTE;
activeSection.background.left = "10mm";
activeSection.background.top = "10mm";
Page 1092