25.03.2013 Views

Printer Job Language Technical Reference Manual - Business ...

Printer Job Language Technical Reference Manual - Business ...

Printer Job Language Technical Reference Manual - Business ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example: Switching <strong>Printer</strong> <strong>Language</strong>s<br />

The job in this example prints two pages: one in PCL and one in<br />

PostScript. The program first enters PCL, and then immediately<br />

enters HP-GL/2 to draw a box and print “PCL Print <strong>Job</strong>.” Next,<br />

PostScript is entered and PostScript data is sent to the printer to draw<br />

a box and print “PostScript <strong>Job</strong>.”<br />

%-12345X@PJL <br />

@PJL COMMENT **Beginning of PCL <strong>Job</strong>** <br />

@PJL COMMENT **Enter PCL (& HP-GL/2)* <br />

@PJL ENTER LANGUAGE = PCL <br />

E%0BIN;SP1;PA1010,1010;PW2.2;<br />

~PD5310,1010,5310,5310,1010,5310,1010,1010;<br />

~PU;PA2280,3040;<br />

~SD1,277,2,1,4,20,5,0,6,0,7,4148;<br />

~DT*;SS;LBPCL Print <strong>Job</strong>*;<br />

~%0AE<br />

~%-12345X@PJL <br />

@PJL COMMENT *** END OF PCL JOB & *** <br />

@PJL COMMENT ** START OF POSTSCRIPT * <br />

@PJL ENTER LANGUAGE = POSTSCRIPT <br />

5 setlinewidth<br />

100 100 moveto<br />

0 300 rlineto<br />

300 0 rlineto<br />

0 -300 rlineto<br />

closepath<br />

stroke<br />

185 240 moveto<br />

/Helvetica findfont 20 scalefont setfont<br />

(PostScript <strong>Job</strong>) show<br />

showpage<br />

^D<br />

~%-12345X<br />

C-2 Programming Examples EN

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!