Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2001 11:03:19 -0500
From:      Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: are magicfilter and appsfilter for non-postscript printers?
Message-ID:  <15150.9799.509874.903122@guru.mired.org>
In-Reply-To: <19543647@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
outlawtx@bga.com types:
> 	Are magicfilter and appsfilter for non-postscript printers?

They aren't "for" any type of printer. They can be used with both
postscript and non-postscript printers. What they both do is examine
the document to guess what kind of file it is, and then arrange to run
the appropriate tools on it to create a representation that the
printer can print. This lets you print myfile.html as it would show in
a browser with the command "lpr myfile.html" instead of the command

	html2ps myfile.html |
	gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ljet4 -sOutputFile=- - | lpr

apsfilter does this by translating everything to postscript, and then
either sending that to the printer or using ghostscript to convert
that to a bitmap to send to the printer.

magicfilter is a little bit more general, using a script file that
pairs what to examine with the conversions that need to be made. Since
most Unix tools know how to generate postscript, this means it behaves
just like apsfilter for most files. For those that the printer can
handle directly, it will pass them to the printer where apsfilter
would convert them to postscript or just fail.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15150.9799.509874.903122>