6.0

Table Of Contents
64
Language Reference
4
Recall that every element in a document has a unique name. You can thus call any element in the
document at any time. For example, on the first page of a medical record document you might create a
header that contains all of the patient information, and on the other pages of the document, scale that
header to fit in the lower left corner of the page. Any modifications you subsequently make to the header
are automatically reflected throughout the document.
Syntax
$element
Arguments
element — String value specifying the name of the element you want to execute.
Code Sample Examples
Example 1 illustrates basic usage of the syntax. Example 2 scales the element $header to one quarter of its
original size, and rotates it 90 degrees. Example 3 creates a thumbnail of each of the first two pages and
positions the thumbnails side-by-side.
Example 1
$my_square
$page1
$box5
Example 2
scale( 0.25, 0.25 )
setangle( 90 )
$header
Example 3
scale( 0.10, 0.10 )
$page1
translate( 8.5, 0 )
$page2
+ (operator & function)
Either concatenates two or more strings or adds two numerical expressions, depending on its context.