Creates a predefined printer data-stream definition.
piopredef [ -r ] -d QueueDeviceName -q PrintQueueName -s DataStreamType -t PrinterType
The piopredef command creates a predefined printer data-stream definition from a virtual printer definition. It can be thought of as the inverse of the mkvirprt command. The mkvirprt command copies a predefined printer data stream definition to create a virtual printer definition, which can then be customized as desired. The piopredef command, however, copies a customized virtual printer definition to create a predefined printer data stream definition.
The piopredef command can be used to create a predefined printer definition for an unsupported printer that accepts a print data stream similar to that of a supported printer. For example, a virtual printer definition for a 4201-3 Proprinter III can be created with the mkvirprt command, displayed with the lsvirprt command, modified as necessary for the unsupported printer with the chvirprt command, and then specified with the piopredef command to create a predefined definition for the unsupported printer.
The new predefined printer definition can then be specified with a mkvirprt command to generate additional virtual printers for the unsupported printer type on the same computer, or transported to other computers and used there.
Note: If no flags are specified, the command syntax is displayed.
To create a new predefined printer definition from an existing virtual printer definition for the virtual printer, enter:
piopredef -d mypro -q proq -s asc -t 9234-2
The attributes for the virtual printer assigned to the mypro queue device on the proq print queue are copied to create a new predefined printer definition for the 9234-2 printer (asc data stream).
Printer Overview for System Management, Printer Specific Information, Virtual Printer Definitions and Attributes, Printer Backend Overview for Programming, Adding a Printer Using the Printer Colon File, Printer Code Page Translation Tables in AIX 5L Version 5.1 Guide to Printers and Printing.
Printer Addition Management Subsystem: Programming Overview in AIX 5L Version 5.1 Kernel Extensions and Device Support Programming Concepts.