7.4

Table Of Contents
PDFWidth/PDFHeight (function)
Returns the width or height, in inches, of a page of a Portable Document Format (PDF) image resource.
Syntax
pdfwidth( name, page ) measure value
pdfheight( name, page ) measure value
Argument
name
String value that specifies the name of the PDF image resource.
page
Integer value that specifies the page of the PDF
Code Sample Example
This example sets the variable maxwidth to the width of page 3, and the variable maxheight to the height of page 4, of the PDF
named parts_manual.
Example
&maxwidth := pdfwidth( ‘parts_manual’,3 )
&maxheight := pdfheight( ‘parts_manual’,4 )
Random (function)
Returns a measure value between 0 and 1, non-inclusive. Since this function uses the current system time when run inside the
printer, it returns a true random value. On the computer, however, the function uses the current data page as its seed to
ensure the returned value is constant when you navigate from page to page on your document.
Syntax
random() measure value
Argument
None
Code Sample Example
This example displays 10 random numbers between 1 and 20.
Example
©2010 Objectif Lune Inc - 536 -