7.6

Table Of Contents
PPDs and PostScript
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()
PassThrough (procedure)
Sends a literal PostScript command to the printer.
Syntax
passthrough( string, [mode])
Argument
string
String value to be sent to the printer. This string is sent as is, with no further modification.
mode
Integer used as a bitfield to specify when to send the passthrough. Use a value of 1 to send the passthrough in PostScript-
printer centric mode only, a value of 2 to send the passthrough in PostScript-Optimized PostScript Stream only, a value of 3 to
©2010 Objectif Lune Inc - 622 -