hi,
I have a strange problem - can't get a2ps filter to do the job!
I would like to filter ASCI files  through the a2ps, to get
"pretty printing" of diverse source files: *.c, *.pl etc...

So, in ifhp.conf I do:

=====

default_language=text
forceconversion

##  UNIX File utility path
file_util_path= /usr/local/bin/file \%s{inputfile}
##  Patterns and Converters
# example conversion program
file_output_match = [
  *postscript*  ps   \%s{ps_converter}
  *pdf*         ps   \%s{pdf2ps_converter}
  *pcl*         pcl  \%s{pcl_converter}
  *pjl*         pjl  \%s{pjl_converter}
  *printer*job*language* pjl
  *text*  ps  \%s{text_converter}
  *gzip_compressed*  filter  \%s{gzip_decompress}
  *             msg  no_converter
  ]
...
...
a2ps_options= -q -B -1 -E -M \%M{papersize} --borders=no -o-
a2ps_converter= /usr/local/bin/a2ps \%s{a2ps_options} \%s{inputfile}

pdf2ps_converter=  /usr/local/bin/gs -dSAFER -dPARANOIDSAFER -dBATCH
-dNOPAUSE -q '\-sOutputFile=/dev/fd/3' 3>&1 1>&2 -sDEVICE=pswrite
\%{pdf2ps_options} -c save pop -\f \%s{inputfile}


ps_converter=
pcl_converter=
pjl_converter=
text_converter= \%s{a2ps_converter}
.....
===============
I send a simple test C-program, which is printed as raw PCL text!
The same program filtered manually through a2ps with the same parameters
to a2ps on printerserver machine gives desired output!


here is  Filter-status output:
====
Filter_status: file program = '/usr/local/bin/file
dfA315chopin.imada.sdu.dk' at 15:50:56.858
 Filter_status: started FILE_UTIL- 'file' at 15:50:56.897
 Filter_status: file information = 'ascii_c_program_text' at 15:50:56.911
 Filter_status: initial job type 'ascii_c_program_text' at 15:50:56.911
 Filter_status: decoded job type 'POSTSCRIPT' at 15:50:56.912
 Filter_status: job type 'POSTSCRIPT', converter '/usr/local/bin/a2ps -q
-B -1 -E -M A4 --borders=no -o- dfA315chopin.imada.sdu.dk' at 15:50:56.913
 Filter_status: started CONVERTER- 'a2ps' at 15:50:57.037
 Filter_status: converter done, output 14627 bytes at 15:50:57.048
 Filter_status: transferring 14627 bytes at 15:50:57.050
 Filter_status: 70 percent done at 15:50:57.050
 Filter_status: 100 percent done at 15:50:57.051
 Filter_status: sent job file at 15:50:57.051
 Filter_status: getting end using 'pjl job/eoj' at 15:50:57.053
 Filter_status: end of job detected at 15:51:25.970
 Filter_status: pagecounter 76237 after 1 attempts at 15:51:26.400
 Filter_status: pagecounter 76237, pages 2 at 15:51:26.401
 Filter_status: done at 15:51:26.402

======

 What is wrong?

Regards
Longina




--
Longina Przybyszewska, system programmer
Dept. of Math. & Comp. Sci. - IMADA
University of Southern Denmark, Odense
Campusvej 55,DK-5230 Odense M, Denmark

tel: +45 6550 2359 - http://www.imada.sdu.dk         email: [EMAIL PROTECTED]
--


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to