7.6

Table Of Contents
Code Sample Example
This example displays page 5 of the PDF image resource ’new_models’, at its default resolution.
Example
showpdf('new_models', 5, 0, 0)
Elements
$element (procedure)
Executes the specified document element (object, page, resource, etc.). Note that in the case of a page, this procedure
executes both the content of the page and the paper handling properties of the page. The height and width of thecalling page
aretherefore set to the same values as those set by the called page.
Recall that every element in a document has a unique name. You cantherefore call any element in the document at any time.
For example, the first page of a medical record document may contain a headerlisting all of the patient information, while
other pagesin the document scale that same header to fit in the lower left corner ofeach page. Any modification you sub-
sequently make to the headeris automatically reflected throughout the document.
Syntax
$element
Arguments
element
String value specifying the name of the element you want to execute.
Examples
Example 1 illustrates basic usage of the syntax.
$my_square
$page1
$box5
Example 2 scales the $header element to one quarter of its original size, and rotates it 90 degrees.
scale( 0.25, 0.25 )
setangle( 90 )
$header
Example 3 creates a thumbnail of each of the first two pages and positions the thumbnails side-by-side.
scale( 0.10, 0.10 )
$page1
©2010 Objectif Lune Inc - 612 -