Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 1996 10:35:39 +0000 ()
From:      "Lenzi, Sergio" <lenzi@cwbone.bsi.com.br>
To:        Fred Adorno <fadorn19@idt.liberty.com>
Cc:        questions@freebsd.org
Subject:   Re: Printing under Netscape
Message-ID:  <Pine.BSF.3.91.960708103116.12100F-100000@home>
In-Reply-To: <31DF636C.41C67EA6@idt.liberty.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 Jul 1996, Fred Adorno wrote:

> Now that I got netscape working under X-Windows why can't I print a file
> that is legible.  Do I need to get a PS-Adobe reader or driver
> installed?
> 
> 
Hello Fred.

You need to install a ghostcript package (PS interpreter).
and a filter in the lp to "interpret" the whole thing.

Here is an example of a filter, must be mode 0755 (chwn 0755 xxxxx)
in the DEVICE=epson, customize to your printer type (gs -h for details).
---------------------------------------
#!/bin/sh
read x
t=`echo $x | cut -c1-2`
if [ $t = "%!" ]
then
	echo $x > /tmp/$$
	cat /tmp/$$ - | \
	/usr/local/bin/gs -dQUIET -dNOPAUSE \
		-sOUTPUTFILE=- -sDEVICE=epson -
	rm -f /tmp/$$
else
	cat
	echo -n 
fi

-------------------------------------------------
and an example for the printcap....
---------------------------------------------
#	@(#)printcap	5.3 (Berkeley) 6/30/90

#lp|local line printer:\

lp|local line printer:\
	:lp=/dev/lpt0:sd=/var/spool/lpd/lp: \
	:mx#0:so:sh:sb:of=/usr/lib/lp/filters/lp:sf
--------------------------^^^^^^^^^^^^^^^^^^^^^^--------
need to customize it for your system 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960708103116.12100F-100000>