2021.2

Table Of Contents
Field Type Description
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. Three different forms of URLs are
supported:
l A relative path to an image resource; this
always starts with "images/". For a file named
background.pdf, stored inside the template
resources, the URL would be
images/background.pdf.
l A URL (either file:, http:, or https:).
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/imag
e.jpg.
l An absolute Windows-style path.
A relative path and a URL are expected to be URL
encoded. For example, a space needs to be
encoded as %20.
An absolute Windows-style path does not need to
be URL encoded, but in JavaScript any backslashes
in a String need to be double-escaped:
"C:\\Images\\Image.pdf".
Example
This scripts sets a background on a Print section using absolute positioning.
Page 1428