## Printer Device Driver

[prev][next][parent][TOC]

### Setting the Device Context

To set or change the device context, select one of the following options from the Device Context section of the PTT Configuration dialog panel:

OD_QUEUED Output is to be queued. (This is the default.) This option is for hardcopy drivers only. The driver opens a spool file and uses the spooler's Spl interface to send output to that file. The driver must consider the data type if this option is chosen. The following data types are available:

PM_Q_STD The hardcopy driver uses the spooler to create a device- independent spool file using the Spl interfaces. See Setting the Data Type .

PM_Q_RAW The hardcopy driver processes the GRE functions to generate device -specific output data. This data is written to a spool file using the spooler Spl interfaces. See Setting the Data Type.

OD_DIRECT Output is not queued. The presentation driver processes the GRE routines to generate device-specific data. Hardcopy drivers use the Prt interface routines to pass the output to the physical device driver.

OD_INFO The presentation driver does not generate any output. The information device context is used only to retrieve information.

OD_METAFILE The device context is used to write a metafile. The option is handled by PMGPI and never is passed to the device driver.

OD_METAFILE_NOQUERY This is the same as OD_METAFILE, except querying of attributes is not permitted. The option is handled by PMGPI and never is passed to the device driver.

OD_MEMORY This is a device context that is used to contain a bit map. The device driver processes the output data the same as for an OD_DIRECT device type, except the output is written to a bit map that is compatible with the physical device. (PTT creates the bit map and associates it with the device context.)