2021.1

Table Of Contents
Field Description
ABSOLUTE Places the PDF at a specific location on the page. Set the background's
top (background.top) and left (background.left) measured from
the top and left side of the section.
CENTERED Centers the PDF on the page, vertically and horizontally.
FIT_TO_
MEDIA
Stretches the PDF to fit the page size.
Examples
This script applies absolute positioning to the background of a Print section.
var activeSection = merge.template.contexts.PRINT.sections['Section
1'];
activeSection.background.source = BackgroundResource.RESOURCE_PDF;
activeSection.background.position = MediaPosition.ABSOLUTE;
activeSection.background.left = "10mm";
activeSection.background.top = "10mm";
activeSection.background.url = "images/somepage.pdf";
The next script scales the background of a Print section to the size of the Media.
var activeSection = merge.template.contexts.PRINT.sections['Section
1'];
activeSection.background.source = BackgroundResource.RESOURCE_PDF;
activeSection.background.position = MediaPosition.FIT_TO_MEDIA;
activeSection.background.url = "images/somepage.pdf";
Post Pagination Script API
The table below lists the functions and objects that are only available in Post Pagination
Scripts. Click through to the object to find a description and sample scripts.
See "Post Pagination Scripts" on page919 for information about this kind of scripts, how to
insert them and what you can do with them.
Page 1421