Autoconfiguring the Printer's Memory for GPD
The following code example shows how to add entries to the GDL file for any memory options in your GPD file. The GPD code example that is shown after the following example is a typical definition of the Memory feature.
*Feature: Memory
{
*rcNameID: =PRINTER_MEMORY_DISPLAY
*DefaultOption: 4096KB
*MemConfigKB: PAIR(4096, 3150)
*MemConfigKB: PAIR(8192, 6750)
}
You can enable memory autoconfiguration by adding the following feature to the GDL file.
*% This feature definition merges with the definition in the GPD file
*Feature: Memory
{
*% *BidiQuery and *BidiResponse constructs must have the same names
*BidiQuery: Memory
{
*QueryString: "\Printer.Configuration.Memory:Size"
}
*BidiResponse: Memory
{
*ResponseType: BIDI_INT
*ResponseData: ENUM_OPTION (Memory)
}
*Option: 4096KB
{
*% Names for the memory options already defined in GPD
*BidiValue: INT(4096)
}
*Option: 8192KB
{
*BidiValue: INT(8192)
}
}