ports/61381: /ports/magicfilter does not re-pipe and refilter non-PS data (such as PDF) in FBSD 5.2-R
O. Hartmann
ohartman at mail.physik.uni-mainz.de
Thu Jan 15 14:00:20 UTC 2004
>Number: 61381
>Category: ports
>Synopsis: /ports/magicfilter does not re-pipe and refilter non-PS data (such as PDF) in FBSD 5.2-R
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 15 06:00:05 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: O. Hartmann
>Release: FreeBSD 5.2-RELEASE i386
>Organization:
IPA Universitaet Mainz
>Environment:
System: FreeBSD mail.physik.uni-mainz.de 5.2-RELEASE FreeBSD 5.2-RELEASE #35: Sat Jan 10 13:23:14 GMT 2004 root at mail.physik.uni-mainz.de:/usr/obj/usr/src/sys/MAIL i386
Intel P4 based machine, 1GB ECC Rambus memory, FreeBSD 5.2-R, most recent cvsupdated
>Description:
Using magicfilter for delivering printer services on a bunch of PS-based and non-PS based
printers results in trouble. Magicfilter 1.2 does recognize PS files and print them as
expected, but magicfilter does not 'repipe' data, like PDF, for further processing. To asure
that no interim rule gets a hit I shrinked down a "test-filter" on up to three or four lines,
like this (for a HP LJ4600 colour printer):
# lj4600-00-05-162-auto-s-filter
0 %! filter /usr/local/bin/psset -q --setpagedevice=LanguageLevel:3;Duplex:false;Tumble:false
0 \004%! filter /usr/local/bin/psset -q --setpagedevice=LanguageLevel:3;Duplex:false;Tumble:false
# Acrobat PDF
0 %PDF fpipe /usr/local/pdf2ps --dLanguageLevel=3
# default
default pipe /usr/local/bin/a2ps -q
Especially the last lines (PDF and pure ASCII transformation) does not work. The resulting file
I found in /var/spool/lpd/test designated as dfA..... printjob (which should be finally a PS file)
remains as the original file I put into the magicfilter filter. I expected there a PS-file, but
a ASCII file remains ASCII (although there is a conversion rule!), DVI remains a DVI file (in the
original filter) and PDF also remains PDF.
ghostscript is most recent version 7.07 of the port's ghostscript-gnu port.
Othe tools as a2ps, pdf2ps (teTeX port) are up to date and compiled recently.
>How-To-Repeat:
Install magicfilter 1.2 and the other necessary stuff (as TeX, ghostscript, a2ps and
so on). Install a custom filter file for a PS printer which should be capable to
convert dvi or PDF files as shown above and as default line an a2ps-filter line
for simple ASCII-to-PS conversion.
try to print PDF files, ASCII files (or generally non-PS file) on a native PS
printer setup with magicfilter. Watch what kind of temporary outputfile is generated
in /var/spool/lpd/appropriate- printer (it should always be a PS file).
>Fix:
No fix known. Looks like a sw-bug in either magicfilter or more tricky in FreeBSD 5.1 to 5.2
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list