HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manual
EN Using Palettes (Color LaserJet, 5, 5M, DeskJet) C-9
Palette Control
The Palette Control command provides a mechanism for marking and 
deletion of palettes.
?&p#C
• A value of 0 deletes all palettes except those on the palette 
stack. The active palette is replaced by the default black and 
white palette (ID 0). The palette control ID is not used.
• A value of 1 clears the palette stack. The active palette is 
unaffected, and the palette control ID is not used.
• A value of 2 deletes the palette with the specified palette 
control ID if it exists; otherwise the command is ignored. For 
example, to delete palette 53, send 
?&p53i2C. If the 
active palette's ID is specified the active palette is replaced by 
the default black and white palette. This option does not 
change the palette control ID value.
Note When the active palette is replaced by the default black 
and white palette, the graphics state associated with the previous 
palette is also replaced.
• A value of 6 creates a copy of the active palette. The copy 
receives the ID specified by the last Palette Control ID 
command. For example, to copy the active palette to a palette 
with an ID of 14, send 
?&p14i6C. The copied palette 
overwrites any palette that already has an ID equal to the 
palette control ID. The copied palette does not become the 
active palette. The command is ignored if a palette is to be 
copied to its own ID.
# = 0 - Delete all palettes except those in the stack (active 
palette deleted)
1 - Delete all palettes in the stack (active palette is not 
affected)
2 - Delete palette (specified by Palette Control ID)
6 - Copy active palette to ID specified by Palette Control ID
Default =0
Range = 0, 1, 2, 6 (command is ignored for unsupported values)










