2018.2

Table Of Contents
media
The media object can be used to specify, enable and position a stationery's front and back in a
Control Script (see "Control Scripts" on page751 and "Control Script API" on page1162).
Note that Media are only used in Print sections (see "Media" on page428).
The available media are listed in, and retrieved via, the template object (see "template" on
page1182), for example: var myMedia = merge.template.media.My_Media.
Fields
Field Type Description
stationery Stationery The Stationery's object's front and back fields are used to set
the front and the back of a Media; see "front, back" below.
front, back
The front and back fields of the Stationery object are used to set the front and the back of a
Media (see "media" above).
Both front and back have the following fields.
Field Type Description
enabled boolean When enabled, the stationery will be included in the output
(Print sections only).
url String Specifies the image to use as virtual stationery. For a file
named My_Media.pdf, stored inside the template resources,
the url would be images/My_Media.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:/users/Adminstrator/Pictures/My_
Media.jpg.
page Number PDF and TIFFfiles may count more than one page. Specify
the page number to use.
Page 1166