Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100197 - foomatic-rip doesn't filter text files with a2ps
Summary: foomatic-rip doesn't filter text files with a2ps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 02:47 UTC by Eugene Pavlovsky
Modified: 2006-06-04 10:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Pavlovsky 2005-07-25 02:47:51 UTC
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.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-14 13:02:23 UTC
can you try the latest version of cups-pdf?
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-19 12:44:13 UTC
please try the latest version and report
Comment 3 Eugene Pavlovsky 2006-04-15 13:57:56 UTC
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
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-02 03:07:23 UTC
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.
Comment 5 Eugene Pavlovsky 2006-06-02 23:01:53 UTC
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?
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-06-04 10:35:33 UTC
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 :)