Jose-
 
Thanks for the tip and sorry I did not thank you earlier, I thought that
I had.

Anyway the problem was that I had the "fast text printing" box checked
in the printtool for this printer.

Still trying to figure out what all goes on here.  This is what I have
come up with so far and it can't be right, can it?

(lp is a remote hp5si using jetdirect card and lj4 filter)

When I do:
#man autorpm |lpr

man somehow knows that the standard output is not the destination and
groff is used to format output (not sure where groff fits but I know it
is there somewhere) I believe the page footer is here at this point
since it is there when I do a man autorpm > autorpm.man and less
autorpm.man

lpr spools its input to the default printer lp

the /var/spool/lpd/lp/filter script is used to try and determine what
type of file it is.
if fast ascii text is on then the asc-to-printer.fpi script is called
and after changing the CR to CR/LF using sed the data is dumped straight
to the printer (I guess in the filter script)

My guess is this is where I was getting an extra linefeed that was
causing all the pagination to be off.

Now the fun part.  if not fast ascii text then the filter script does 
 cat - |asc-to-ps.fpi|ps-to-printer.fpi 

that converts the ascii output from groff into postscript and then uses
ghostscript to print the postscript.

Wow!  Even if I am close I had no idea.

I did not find the fast_ascii_text test in the filter file since I was
on the track before I really got into it and running the printool
changed the filter script. at least vi complained when I got out of it.

I got on the right track after finding the DEBUG_* variables in the
filter file and setting them to 1, printing, and then looking in
/tmp/filter.debug.

Again thanks for tip of looking in man printcap it got me started down
the right path anyway.

Bret

"Jose M. Sanchez" wrote:
> 
> Are you sure that linux is set up for A4 format (or the reverse letter
> size).
> 
> I had this problem myself and all I had to do was modify the printcap for
> the appropriate page size (man printcap).
> 
> By default my output was arriving as Euro A4 format instead of letter.
> 
> -JMS
> 
> -----Original Message-----
> From: Bret Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 23, 2000 8:58 PM
> To: [EMAIL PROTECTED]
> Subject: Hp print anomoly
> 
> I keep meaning to find the time to ask this so here goes.
> 
> We have an HP 5Si with a jet direct card in it.  Our Samba server has
> this printer set up as the default printer.
> 
> I can print to the HP by creating a network printer from the window
> boxes (both 98 and NT) with absolutly no problems but when I print man
> pages from the server or any of the Linux boxes, the paging is off.  A
> whole page does not fit onto a printed page and there is no page break
> after the footer of the page.  I think I selected the the HP4 printer in
> the printtool when I set it up.
> 
> What is up?  Is this the result of the printcap selected by the
> printtool.  I have never had to setone up or modify one.  I am of the
> GUI linux generation having got my first tast of linux with redhat 4.5 I
> think it was.
> 
> This is obviously not a show stopper but it is kind of irritating. Any
> help greatly appreciated.
> 
> Bret
> 
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
begin:vcard 
n:Hughes;Bret 
tel;fax:918.587.0131
tel;work:918.587.0131
x-mozilla-html:FALSE
url:www.elevating.com
org:Elevating Communications Inc
adr:;;PO Box 1323;Tulsa;OK;74101-1323;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Solutionist/President
x-mozilla-cpt:;19888
fn:Bret  Hughes
end:vcard

Reply via email to