HP 4050 HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 296
Example: Switching Printer Languages, PJL COMMENT **Beginning of PCL Job** <CR><LF>
UPC - 088698192764
View all HP 4050 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 296 highlights
Example: Switching Printer Languages The job in this example prints two pages: one in PCL and one in PostScript. The program first enters PCL, and then immediately enters HP-GL/2 to draw a box and print "PCL Print Job." Next, PostScript is entered and PostScript data is sent to the printer to draw a box and print "PostScript Job." %-12345X@PJL @PJL COMMENT **Beginning of PCL Job** @PJL COMMENT **Enter PCL (& HP-GL/2)* @PJL ENTER LANGUAGE = PCL E%0BIN;SP1;PA1010,1010;PW2.2; ~PD5310,1010,5310,5310,1010,5310,1010,1010; ~PU;PA2280,3040; ~SD1,277,2,1,4,20,5,0,6,0,7,4148; ~DT*;SS;LBPCL Print Job*; ~%0AE ~%-12345X@PJL @PJL COMMENT *** END OF PCL JOB & *** @PJL COMMENT ** START OF POSTSCRIPT * @PJL ENTER LANGUAGE = POSTSCRIPT 5 setlinewidth 100 100 moveto 0 300 rlineto 300 0 rlineto 0 -300 rlineto closepath stroke 185 240 moveto /Helvetica findfont 20 scalefont setfont (PostScript Job) show showpage ^D ~%-12345X C-2 Programming Examples EN