7.5

Table Of Contents
Example
showeps('my_eps', 4.5, 0)
ShowPDF (procedure)
Displays a page of a PDF image resource.
Syntax
showpdf( resname, pagenum, width, height )
Argument
resname
String value containing either the name of the PDF resource within the document, or the path to a PDF file .
pagenum
Integer value specifying the page number within the PDF image resource.
width, height
Measure values specifying the width/height, in inches, the PDF page occupies when it displays. Specifying a value of zero for
one but not both of the two dimensions scales the PDF page to fit the non-zero dimension. Specifying both a width and a height
scales the PDF page to the best fit possible with that width and height, while maintaining its aspect ratio. Specifying both a
width and a height of zero displays the PDF page at its default resolution.
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
©2010 Objectif Lune Inc - 613 -