Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prnting Fold Marks with PCL 1

Status
Not open for further replies.

javs90

Technical User
Dec 20, 2001
3
MX
Hi:

Monthly in my job, need to envelope letters for the customers, this letters don´t have and specific number, one client can have 3 pages, other 5, other only 1.

This letters are printed from HP-UX using PCL

Now we have a new "folder letter machine", this device use a OPTICAL search for marks in each page, one mark is for detected the first page of each customer, other for the middle pages and one more for the last page.

Each of this marks are maked with 3 simple lines with a specific position size and heigth.

Somebody have a example for do it with PCL commands.
 
Use the rectangle draw command...

Position the cursor, say...

<esc>*p0x1000Y

then draw the rectangle

<esc>*c75a3b0P

The value before the "a" is the width and the value before the "b" is the depth. The "0P" specifies a black fill.

This will draw a rectangle that is 75 dots wide by 3 dots high at location 0,1000

Adjust location and size parameters to suit.


Jim Asman
 
Jim:

I work with your solution and now my reports have his "folder insertion marks".

I´m going to use it at the end of the current month.

Thanks ..




 
>> This will draw a rectangle that is 75 dots wide by 3
>> dots high at location 0,1000

Just for completeness (and, I guess, because I'm a bit of a pedant):

(a) The location is relative to the logical page, rather than the physical page.
On most LaserJet devices, the top-left corner (0.000,0.000)of the logical page is located at approximately (0.237,0.000) relative to the physical page (for A4 portrait pages).


(b) The units used in the {esc}*p#x#Y 'set cursor' sequences are relative to the current 'PCL unit of measure'; unless a 'Unit of Measure' sequence ({esc}&u#D) specifies otherwise, these units default to 300-per-inch.

You could instead use the {esc}&a#h#V 'set cursor' sequences, for which the units (decipoints) are absolute.


(c) The units used in the {esc}*c#a#B 'set rectangle size' sequences are (similarly) relative to the current PCL unit of measure.

You could instead use the {esc}*c#h#V 'set rectangle size' sequences, for which the units (decipoints) are absolute.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top