Article View: comp.laser-printers
Article #421Re: PCL-5 graphics specs wanted
From: Jim Conrad
Date: Thu, 21 Mar 1991 18:32
Date: Thu, 21 Mar 1991 18:32
24 lines
1368 bytes
1368 bytes
PCL5 includes the plotter language, HP-GL/2. You use it something like this,
printf("\33%0B"); // Enter HP-GL/2 mode
printf("IN"); // Initialize HP-GL/2 Mode
.
. // Drawing commands
.
printf("\33%0A"); // Return to PCL
printf("\33E"); // Reset and end job.
There are far too many drawing commands to describe here. But if you were
to insert the following two statements into the code above, you'd draw a
triangle,
printf("SP1PA10,10"); // Select pen 1, move to 10,10
printf("PD2500,10,10,1500,10,10;"); // Pen down and draw three lines.
The complete language for the LaserJet III printers is documented in the
"PCL5 Printer Language Technical Reference Manual", HP Part 33459-90903.
I adapted the example above from this guide.
Jim Conrad
Network Printer Division
Technical Details
Message-ID:
<9103241833.AA18711@crayola.cs.UMD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!HPDMD48.BOI.HP.COM!jrcReferences:
<9103181601.AA11447@crayola.cs.UMD.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!HPDMD48.BOI.HP.COM!jrc From: jrc@HPDMD48.BOI.HP.COM (Jim Conrad) Newsgroups: comp.laser-printers Subject: Re: PCL-5 graphics specs wanted Message-ID: <9103241833.AA18711@crayola.cs.UMD.EDU> Date: 21 Mar 91 18:32:59 GMT References: <9103181601.AA11447@crayola.cs.UMD.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Organization: Hewlett Packard - Boise, ID Lines: 24 Approved: laser-lovers@brillig.umd.edu