The resources statement details the strings needed to be sent to the printer to perform operations such as turning bold on, forcing a new page, setting the printer into landscape mode etc.
The resources statement consists of the set of keyword and string pairs listed in the following table. Note that the EndResources keyword does not have an associated string.
Formally, the syntax is:
|
All attributes within a resources statement are strings enclosed in a pair of double quotes. For example:
SetPageSize "<27>C<0>%c"
PreAmble "<27>l<0><27>N<0><27>+<2><27>x<1>"
PostAmble "<13><27>@"
BoldOn "<27>G"
BoldOff "<27>H"
Parameters can also be included in attribute strings, for example %c in the SetPageSize string.
Different printers may implement different numbers of resource strings — for example:
page printers do not need to support CarriageReturn
a printer may not support Strikethrough, so its resources statement woud not include StrikethroughOn and StrikethroughOff.
There are also eight numbered resources, Resource1 to Resource8, which can be included in the resource statement.