[Foomatic] foomatic/a2ps does not print...

fred fredantispam at free.fr
Mon Aug 9 03:08:03 PDT 2004


Hi,

I just have successfully installed cups. Good.

However, I have a problem with filtering ASCII text file, using a2ps via
foomatic.

Here's my /etc/cups/mime.convs file :
application/pdf         application/postscript  33      pdftops
application/postscript  application/vnd.cups-postscript 66      pstops
application/vnd.hp-HPGL application/postscript  66      hpgltops
application/x-cshell    application/postscript  33      texttops
application/x-perl      application/postscript  33      texttops
application/x-shell     application/postscript  33      texttops
text/plain              application/postscript  33      cupsomatic

Here's my /etc/foomatic/filter.conf :
# Command for converting text files to PostScript.
#
# Priority low
# textfilter: a2ps

# Enable debug output into a logfile in /tmp/foomatic-rip.log.
# It will contain status from this filter, plus Ghostscript stderr output.
#
# WARNING: This logfile is a potential security hole; do not use in production.
#
# Priority low
debug: 1

With debug set to 1, I have /tmp/foomatic-rip.ps and /tmp/foomatic-rip.log.
These files are ok.

But in /var/log/cups/error_log, I have 
I [09/Aug/2004:12:14:58 +0200] Adding end banner page "none" to job 65.
I [09/Aug/2004:12:14:58 +0200] Job 65 queued on 'epsonbw' by 'fred'.
I [09/Aug/2004:12:14:58 +0200] Started filter /usr/lib/cups/filter/cupsomatic
(PID 2170) for job 65.
I [09/Aug/2004:12:14:58 +0200] Started filter /usr/lib/cups/filter/pstops (PID
2171) for job 65.
I [09/Aug/2004:12:14:58 +0200] Started filter /usr/lib/cups/filter/pstoraster
(PID 2172) for job 65.
I [09/Aug/2004:12:14:58 +0200] Started filter
/usr/lib/cups/filter/rastertoprinter (PID 2173) for job 65.
I [09/Aug/2004:12:14:58 +0200] Started backend /usr/lib/cups/backend/epson (PID
2174) for job 65.
E [09/Aug/2004:12:15:00 +0200] [Job 65] No pages found!
E [09/Aug/2004:12:15:00 +0200] PID 2172 stopped with status 1!

So, there is a problem between pstops and pstoraster.

If I set LogLevel to debug in /etc/cups/cupsd.conf, I have in error_log :

D [09/Aug/2004:12:18:25 +0200] [Job 66] Error: /undefined in ^[@^[
D [09/Aug/2004:12:18:25 +0200] [Job 66] Operand stack: 
D [09/Aug/2004:12:18:25 +0200] [Job 66] 				       
D [09/Aug/2004:12:18:25 +0200] [Job 66] Execution stack:
D [09/Aug/2004:12:18:25 +0200] [Job 66] %interp_exit   .runexec2  
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push  
--nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
  1   3   %oparray_pop	 1   3	 %oparray_pop	1   3	%oparray_pop  
.runexec2   --nostringval--   --nostringval--	--nostringval--   2  
%stopped_push	--nostringval--   --nostringval--   --nostringval--
D [09/Aug/2004:12:18:25 +0200] [Job 66] Dictionary stack:
D [09/Aug/2004:12:18:25 +0200] [Job 66] --dict:1053/1417(ro)(G)--  
--dict:0/20(G)--   --dict:68/200(L)--

Where ^[@^[ come from ?
Any idea ?
How can I debug this ?

Thanks in advance.

PS : a2ps foo.txt works fine, but lpr foo.txt does not.
PS2 : cups 1.1.20, cupsomatic-ppd 20040506, foomatic 3.0.1, a2ps 4.13b, debian
sarge 2.6.6



More information about the Printing-foomatic mailing list