Command entry format
Important
The modern print platform is Windows' preferred means of communicating with printers. We recommend that you use Microsoft's IPP inbox class driver, along with Print Support Apps (PSA), to customize the print experience in Windows 10 and 11 for printer device development.
For more information, see Modern print platform and the Print support app design guide.
To specify a printer command entry in a GPD file, use the following format:
*Command: CommandName {CommandAttributes}
where CommandName is one of the predefined command names, and CommandAttributes is a set of command attributes.
For example, a GPD file might contain the following specification of the CmdStartPage command, which initializes a page for printing.
*Command: CmdStartPage
{
*Order: PAGE_SETUP.100
*Cmd: "<0D>"
}
If, for a particular CommandName value, you only need to specify the *Cmd attribute, you can use a shortened version of the command entry format, as follows:
*Command: CommandName: CommandString
where CommandString is a text string representing a printer command escape sequence. For more information about specifying escape sequences, see Command String Format.
For example, a GPD file might contain the following specification of the CmdBoldOn command, which turns on bold text:
*Command: CmdBoldOn: "<1B>(s3B"