View Single Post

   
  #2 (permalink)  
Old 02-26-2008, 02:31 AM
Richard B. Gilbert
 
Posts: n/a
Default Re: Unwanted border when printing ASCII documents

Rich Teer wrote:
> Hi all,
>
> I set up printing to my network printer using the method detailed
> in the Solaris Printing guide on docs.sun.com (including the step
> that adds the filters in /etc/lp/fd. Printing works like a charm
> except that when I print a plain ASCII document (say /etc/passwd)
> each page has a border. No matter what I try, I can't get rid of
> the damned border!
>
> Here are the commands I used to set up this local network printer
> called "optra", whose hostname is "laser1":
>
> # lpadmin -p optra -v /dev/null
> # lpadmin -p optra -m netstandard_foomatic
> # lpadmin -p optra -o dest=laser1:9100
> # lpadmin -p optra -I postscript
> # lpadmin -p optra -n /usr/share/ppd/SUNWfoomatic/Lexmark/Lexmark-Optra_S_1250-Postscript.ppd.gz
> # lpadmin -p optra -D "Optra S 1255N"
> # cd /etc/lp/fd
> # for i in *.fd; do
> > name=`basename $i .fd`
> > lpfilter -f $name -F $i
> > done

> # accept optra
> # enable optra
> # lpstat -p optra
> printer optra idle. enabled since Sun Feb 24 16:26:29 2008. available.
> # lp -d optra /etc/passwd
>
> I've tried just about everything I can think of--even editing the
> a2ps command line in /usr/lib/lp/bin/foomatic-rip. I added the
> option "--borders=no" to the line that starts "my $fileconverter"
> and tried again, but no luck. Google shows a few people having
> the same problem, but no answer.
>
> Any help greatfully received; surely printing an ASCII file without
> a border shouldn't be this difficult!
>
> Many TIA,
>


Welcome to the wonderful world of Unix printing! If the CD that came
with my JetDirect card didn't have support for Solaris I'd probably
STILL be trying to get it to work on S8 and S9.

S10 seems to have improved support for setting up a printer. It allowed
me to pick my printer model from a list a la Windoze.

Neither Windoze nor VMS is as difficult, in this regard, as the typical
Unix. The documentation, what there is of it, isn't very helpful!

Reply With Quote