1.8

Table Of Contents
Field Type Description
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
.
clone()
This function returns a new set containing a copy of each element in a set; see "Dynamically
adding sections (cloning)" on page655.
Note
Due to resource constraints, the number of unique clones that can be created throughout a job is
limited to around 20. A clone is considered unique if it has a different name. This is a rough
estimate; if the template is simple, up to 60 clones may be created.
The limit only applies to the amount of unique clones. There is no limit to the amount of clone()
function calls.
To duplicate an existing template element, clone it before calling append(); see "Examples" on
page886.
Examples
This script performs an iteration over the elements in the results (the elements that match the
selector of the script).
var row = query("tbody tr", results).clone();
query("tbody", results).append(row);
Page 944