i've set "textfilter: a2ps" in my config file, did "ln -s /etc/foomatic /usr/local/etc/" to work around the fact that foomatic-rip reads /usr/local/etc/foomatic/filter.conf (already reported that bug); confirmed by printf-debugging foomatic-rip perl script that textfilter: a2ps is successfully read from the filter.conf file, but somehow stuff i print doesn't get processed with a2ps (output looks just like when i didn't touch filter.conf). i'm testing it with cups-pdf. Reproducible: Always Steps to Reproduce: 1. 2. 3.
can you try the latest version of cups-pdf?
please try the latest version and report
tried with cups-pdf 2.0.3 (latest gentoo ebuild as of today), still doesn't work. a2ps -d favfortunes.txt produces a neat a2ps-processed pdf file, doing lp favfortunes.txt produces a bare-bones pdf file. looking at this foomatic-rip.log (foomatic-rip obviously gets executed), i think that lp (cups) is feeding postscript to foomatic-rip, so foomatic-rip doesn't run it's textfilter. i'm not a printing guru, maybe it's the right thing, but i dunno, i want "lp something.txt" to be processed thru a2ps automatically, is it possible? foomatic-rip version $Revision: 3.43.2.6 $ running... called with arguments: '107', 'root', 'favorite_fortunes.txt', '1', '' Parsing PPD file ... *cupsFilter: "application/vnd.cups-postscript 0 foomatic-rip" Added option ColorSpace Added option PageSize Added option PageRegion Added option ImageableArea Added option PaperDimension Added option InputSlot Added option Duplex Added option Resolution Added option PreFilter Added option Font Parameter Summary ----------------- Spooler: cups Printer: cups-pdf PPD file: /etc/cups/ppd/cups-pdf.ppd Printer model: Generic PostScript Printer Foomatic/Postscript (recommended) Options: Job title: favorite_fortunes.txt File(s) to be printed: <STDIN> ================================================ File: <STDIN> ================================================ Reading PostScript input ... --> This document is DSC-conforming! ----------- Found: %%BeginProlog Found: %%EndProlog ----------- Found: %%BeginSetup
http://www.easysw.com/cups/newsgroups.php?s5334+gcups.general+v5343 I hope that solves your problem :) Please reopen if you want me to change anything in portage.
nope, it doesn't work for me. somehow, I no longer can print text files at all! web admin shows that these tasks get "cancelled". how can I debug/fix this?
ok, I bumped foomatic-filters to 3.0.20060601 in portage and tried this myself. So, I need to do the following: a) use foomatic-rip as text filter: sed -i -e "s:texttops:foomatic-rip:" /etc/cups/mime.convs b) make it use a2ps sed -i -e "s/# textfilter: a2ps/textfilter: a2ps/" /etc/foomatic/filter.conf But the downside of this is that cups-pdf printed pdf diles lose their name. They are just safed as "stdin.pdf" for me then. If you got saome time to figure out how to fix that remaining bug I would gladly add it to portage. Sorry, for the time this took, I did not really look at it in the first place. The printing herd needs help, btw :)