You can create custom banner pages for your queues by writing a program that takes seven positional arguments and prints the banner page on the standard out (stdout). The seven banner program arguments are:
file
user
host
queue
message
paper
locale
All the arguments are strings and should be enclosed in double quotes (“ “) if they contain spaces.
The data output by your banner program should be readable by the selected printer emulation. For example, PCL emulation banner programs should create valid PCL emulation data.