×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Prnting Fold Marks with PCL

Prnting Fold Marks with PCL

Prnting Fold Marks with PCL

(OP)
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.

RE: Prnting Fold Marks with PCL

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
http://www.spectracolorservices.com

RE: Prnting Fold Marks with PCL

(OP)
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 ..




 

RE: Prnting Fold Marks with PCL

>> 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.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close