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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL Bottom Margin 1

Status
Not open for further replies.

reedswenson

Programmer
Apr 29, 2004
3
US
Does anyone know a PCL sequence to remove the bottom margin on an HP LaserJet?

reedswenson
reed.swenson@mccoymyers.com
 
There is no explicit sequence related to 'bottom margin'.

Howver, note that most (all?) LaserJet devices have an unprintable area, which is usually 1/6 inch all round.
(i.e. you cannot usually print closer to any edge than 1/6 inch).

Just what is it that you are trying to do?
 
A bit more information:

Left, right and top margins may be explicitly set by PCL sequences; the bottom margin is set indirectly by the 'SetTextLength' sequence when the perforation skip region is enabled (which it is by default). Disabling perforation skip can enable the printer to print closer to the end of the page.

Relevant sequences are:

<esc>&k#H set Horizontal Motion Index #=1/120 inch units
(effectively column width)
<esc>&a#L set Left Margin to left edge of column #
<esc>&a#M set Right Margin to right edge of column #
<esc>&l#C set Vertical Motion Index #=1/48 inch units
(effectively line spacing)
<esc>&l#E set Top Margin to top of line #
<esc>&l#F set Text Length = # lines
<esc>&l#L set perforation skip mode # 0=disable; 1=enable
 
You could disable the perf skip...

<esc>&l0C

That is an ell before the 0



Jim Asman
jlasman@telus.net
 
I'm sorry.

That should be <esc>&l0L

Jim Asman
jlasman@telus.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top