7.6

Table Of Contents
Example
c128(@(5,12,13))
CallPPD (procedure)
Calls a section of the PostScript Printer Description (PPD) file and executes it on the printer. Use this to set printer options such
as the input tray or duplexing options. The tokens and subtokens you use as arguments with this function must be defined in
the PPD file associated with your document or page in the document’s or page’s Basic Attributes. PlanetPress searches the PPD
file for the token-subtoken combination and then prompts the printer to execute the corresponding code.
Syntax
callppd( token, subtoken )
Arguments
token
This is the string to search for in the PPD file (for example, Duplex).
subtoken
This is string to search for that is a setting for the token (for example, None).
Example
if((&Condition1) or (&Condition2))
callppd("Tray", "2")
elseif()
if((&Condition3) or (&Condition4))
callppd("Tray", "3")
elseif()
callppd("Tray", "4")
endif()
endif()
Ceil (function)
Returns the smallest integer greater than or equal to the specified measure value.
Syntax
ceil( value ) integer value
Argument
value
Measure value. The absolute value of the measure value must be less than the maximum value of an integer in PostScript
(2,147,483,647).
Code Sample Examples
These examples illustrate various applications of ceil().
©2010 Objectif Lune Inc - 260 -