6.0

Table Of Contents
75
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 pages Basic Attributes. PlanetPress Design 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
This example shows how you can use this function to achieve the same results you would using the
Advanced Paper Handling options. The first illustration shows duplex printing turned off using the
document’s Advanced Paper Handling options.
The following is an excerpt from the PPD file associated with the document.
*% Two-sided Printing (Duplex)
*OpenUI *Duplex/2-Sided Printing: PickOne
*OrderDependency: 50.0 AnySetup *Duplex
*DefaultDuplex: None
*Duplex None/Off: "