HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manual
3-4 Using Palettes EN
Pushing a palette does not save the following parameters.
• Foreground color
• Color components: 1st, 2nd, and 3rd
• Finish mode
• Monochrome print mode
The palette stack depth is limited by printer memory. Attempts to push
a palette with insufficient memory cause an out-of-memory error.
Attempts to pop from an empty stack are ignored.
Macros can push and pop palettes. A palette that was popped in an
executed macro remains in effect at the end of the macro (this is not
true for “called” or “overlaid” macros).
The PCL reset command (
?E) or an exit to PJL causes the printer to
empty the palette stack and overwrite the active palette with a
non-programmable black and white palette. The HP-GL/2 commands
IN and DF have no effect on the palette stack, but they do destroy the
active palette and replace it with the default HP-GL/2 palette.