[KLUG Members] Printing fun

Adam Tauno Williams members@kalamazoolinux.org
Tue, 31 Jul 2001 14:05:13 -0400 (EDT)


>An application sends basic text to lpr.  

Maybe,  figuring out what is incoming is the filters job assuming you used the
RH printtool to create the queue.  Could be text, or postscript, or jpeg,
or....

>It comes out of the printer at 10 characters per inch.  I would like to 
>preceed the text getting sent with the escape codes that tell it to print 
>at 12 or 14 cpi.  I have tried using leader (ld) in the printcap to send a 
>string to the printer.  No matter what I put in, only the banner page prints 

There printcap filters are only used for the banner page.

>if the :ld=\r:\ or any other string is in printcap for the printer.  The 
>question is, How do I tell the printer to print a different characters per 
>inch if I need to accomplish this from the linux printing tools rather than
>he application? 

Do you have to print using lpr?  I run all text jobs through mpage which lets
you set sizes,  put on page numbers,  double up pages, etc.....  It turns text
jobs into nice postscript.

mpage {-1 -2 -4 -8} -F{fontname{ -h{header} -L{lines} -W{width} -P{printer}

>Do I need to edit the filter?

No! Don't do that.  It gets ugly.

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505