Below is the list of command used by PCL5 compliant hp printers ..i think u will have to use JOB STOP command .
How are u communicating with printer through PC or microcontroller .I am using PIC32 mx and porting microchip application library demo program with HP printer deskget 2010 i have been able to communicate and get descriptors , but unable to print anything .
//#define ESCAPE "\032"
//#define ESCAPE_CHAR '\032'
#define ESCAPE "\027"
#define ESCAPE_CHAR '\027'
#define COMMAND_ASCII ESCAPE "(0U" // Zero
#define COMMAND_FONT_BOLD ESCAPE "(s3B"
#define COMMAND_FONT_BOLD_VG "6,3,7,"
#define COMMAND_FONT_ITALIC ESCAPE "(s1S"
#define COMMAND_FONT_ITALIC_VG "5,1,"
#define COMMAND_FONT_MEDIUM ESCAPE "(s0B"
#define COMMAND_FONT_MEDIUM_VG "6,0,7,"
#define COMMAND_FONT_UPRIGHT ESCAPE "(s0S"
#define COMMAND_FONT_UPRIGHT_VG "5,0,"
#define COMMAND_SELECT_STANDARD "SS;"
#define COMMAND_STANDARD_FONT "SD1,277,2,"
#define COMMAND_STANDARD_FONT_FIXED "0,3,"
#define COMMAND_STANDARD_FONT_PROPORTIONAL "1,4,"
#define COMMAND_TEXT_START "LB"
#define COMMAND_TEXT_STOP "\003;"
#define COMMAND_GRAPHICS_ANCHOR_CORNER "AC%d,%d;"
#define COMMAND_GRAPHICS_ARC_RELATIVE "AR%d,%d,%d;"
#define COMMAND_GRAPHICS_BAR "RA%d,%d;"
#define COMMAND_GRAPHICS_CIRCLE "CI%d;"
#define COMMAND_GRAPHICS_CIRCLE_FILLED "WG%d,0,360;"
#define COMMAND_GRAPHICS_COLOR_BLACK "SP1;"
#define COMMAND_GRAPHICS_COLOR_WHITE "SP0;"
#define COMMAND_GRAPHICS_FILL_TYPE_SOLID "FT1;"
#define COMMAND_GRAPHICS_FILL_TYPE_SHADE "FT10,%d;"
#define COMMAND_GRAPHICS_FILL_TYPE_HATCH "FT3,%d,%d;"
#define COMMAND_GRAPHICS_LINE "PA%d,%d;PD%d,%d;"
#define COMMAND_GRAPHICS_LINE_END_BUTT "LA1,1;"
#define COMMAND_GRAPHICS_LINE_END_ROUND "LA1,4;"
#define COMMAND_GRAPHICS_LINE_END_SQUARE "LA1,2;"
#define COMMAND_GRAPHICS_LINE_JOIN_BEVEL "LA2,5;"
#define COMMAND_GRAPHICS_LINE_JOIN_MITER "LA2,1;"
#define COMMAND_GRAPHICS_LINE_JOIN_ROUND "LA2,4;"
#define COMMAND_GRAPHICS_LINE_TO "PD%d,%d;"
#define COMMAND_GRAPHICS_LINE_TO_RELATIVE "PD;PR%d,%d;"
#define COMMAND_GRAPHICS_LINE_TYPE_DASHED "LT2,4,0;"
#define COMMAND_GRAPHICS_LINE_TYPE_DOTTED "LT1,4,0;"
#define COMMAND_GRAPHICS_LINE_TYPE_SOLID "LT;"
#define COMMAND_GRAPHICS_LINE_WIDTH_NORMAL "PW;"
#define COMMAND_GRAPHICS_LINE_WIDTH_THICK "PW1.059;" // 3 points
#define COMMAND_GRAPHICS_MOVE_TO "PA%d,%d;"
#define COMMAND_GRAPHICS_MOVE_RELATIVE "PR%d,%d;"
#define COMMAND_GRAPHICS_ORIENT_LANDSCAPE ESCAPE "*p0x0Y" ESCAPE "*c7920x5760Y" ESCAPE "*c0T" ESCAPE "%1B;IN;SP1;TR0;SC0,1.411,0,-1.411,2;IR0,100,0,100;" //"RO270;IP;"
#define COMMAND_GRAPHICS_ORIENT_PORTRAIT ESCAPE "*p0x0Y" ESCAPE "*c5760x7920Y" ESCAPE "*c0T" ESCAPE "%1B;IN;SP1;TR0;SC0,1.411,0,-1.411,2;IR0,100,0,100;" //"RO;IP;"
#define COMMAND_GRAPHICS_PEN_UP "PU;"
#define COMMAND_GRAPHICS_PEN_DOWN "PD;"
#define COMMAND_GRAPHICS_RECTANGLE "EA%d,%d;"
#define COMMAND_GRAPHICS_TERMINATE ESCAPE "%1A"
#define COMMAND_GRAPHICS_WEDGE "WG%d,%d,%d;"
#define COMMAND_JOB_START ESCAPE "%-12345X" ESCAPE "E" ESCAPE "&l0E" ESCAPE "&l0F" ESCAPE "&a0L" ESCAPE "&a0M" //ESCAPE "&a0N"
#define COMMAND_JOB_STOP ESCAPE "E" ESCAPE "%-12345X"
#define COMMAND_LANDSCAPE ESCAPE "&l1O" // Little L, one, Capital o
#define COMMAND_PORTRAIT ESCAPE "&l0O" // Little L, zero, Capital o
#define COMMAND_NEXT_PAGE ESCAPE "&a1G"
#define COMMAND_POSITION_HORIZONTAL ESCAPE "&a%dH"
#define COMMAND_POSITION_VERTICAL ESCAPE "&a%dV"
#define COMMAND_PROPORTIONAL ESCAPE "(s1P"
#define COMMAND_FIXED ESCAPE "(s0P"
#define COMMAND_RASTER_COMPRESSION_ADAPT ESCAPE "*b5M"
#define COMMAND_RASTER_COMPRESSION_DELTA ESCAPE "*b3M"
#define COMMAND_RASTER_COMPRESSION_NONE ESCAPE "*b0M"
#define COMMAND_RASTER_COMPRESSION_RES ESCAPE "*b4M"
#define COMMAND_RASTER_COMPRESSION_RLE ESCAPE "*b1M"
#define COMMAND_RASTER_COMPRESSION_TIFF ESCAPE "*b2M"
#define COMMAND_RASTER_DATA ESCAPE "*b%dW" // In bytes of data
#define COMMAND_RASTER_END ESCAPE "*rC"
#define COMMAND_RASTER_HEIGHT ESCAPE "*r%dT" // In pixels
#define COMMAND_RASTER_PRESENTATION ESCAPE "*r0F"
#define COMMAND_RASTER_RESOLUTION ESCAPE "*t%dR"
#define COMMAND_RASTER_START ESCAPE "*r1A"
#define COMMAND_RASTER_WIDTH ESCAPE "*r%dS" // In pixels
//#define COMMAND_RASTER_Y_OFFSET ESCAPE "*b%dY" // In pixels