hi,

well as you are asking, you're printer probably doesn't support the pdf
format itself, so you need a filter to convert it to postscript for ex:

################begin filter script pdf###############################
#!/bin/sh
#set -x
#echo $* >> /tmp/pdf.log
# primitive filter that uses 'pdf2ps' to convert guess what
# pdf2ps doesn't read from the commandline therefore this is necessary

# we need a tempfile in the spooldirectory
# make sure that there is no old shit
# (working directory should be the spooldirectory)
if /usr/bin/test -e pdf.tmp
then
# if there is delete it
rm pdf.tmp
fi
# create a new tmp-file
touch pdf.tmp
# read from STDIN an write into the tmp-file
cat >> pdf.tmp
# call the pdf2ps converter binary to convert the tmp-file and write the
result to STDOUT
/usr/local/bin/pdf2ps pdf.tmp -
# delete the tmp-file
rm pdf.tmp
################end filter script pdf###############################

than you have to point the PDF format to your filter in the ifhp.conf
file, if you have a converting tool that reads from STDIN and wirtes to
STDOUT you don't even need the script, just the ifhp.conf entry:

file_output_match = [
  *postscript*  ps  \%s{ps_converter}
  *pcl*         pcl  \%s{pcl_converter}
  *pjl*         pjl  \%s{pjl_converter}
  *printer*job*language* pjl
  *text*        ps   /usr/libexec/filters/ascii host=\%s{H} user=\%s{n}
filename=\%s{N} Z=\%s{Z} T=\%s{T}
  *gzip_compressed*  filter  \%s{gzip_decompress}
  *PDF*         ps  /usr/libexec/filters/pdf
  ]

regards

                ~Christoph





Javier Ferruz schrieb:
> 
>         I'd like use lpr to print pdf files. The printcap
>         file local is
> 
> lp
>         :lp=:
>         :rm=printers.mad.isoco.net
>         :rp=hplj4l
>         :sd=/var/spool/lpd/remote
>         :mx#0
>         :sh
> 
>         and printcap file in the server host is
> 
> lp|hplj4l|HP LaserJet 4L:
>         :lp=hplj4050.mad.isoco.net%9100:\
>         :sd=/var/spool/lpd/hplj4050:\
>         :lf=/var/log/lpd/hplj4050/log/log:\
>         :af=/var/log/lpd/hplj4050/log/acct:\
>         :as=|/usr/local/libexec/filters/accounting.pl start:\
>         :ae=|/usr/local/libexec/filters/accounting.pl end:\
>         :if=/usr/local/libexec/filters/ifhp:\
>         :of=/usr/local/libexec/filters/ifhp:\
>         :ifhp=default:\
>         :filter=/usr/local/libexec/filters/ifhp:\
>         :la:mx#0:tr=:cl:sh
> 
>         Can anybody help me???
> 
>         Thanks a lot,
> 
> --
> Javier Ferruz Rodr�guez
> IT Dept. @ iSOCO
> 
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------

-- 
/*   Christoph Beyer     |   Office: Building 2b / 23     *\ 
 *   DESY                |    Phone: 040-8998-2317        *
 *   - IT -              |      Fax: 040-8994-2317        *
\*   22603 Hamburg       |     http://www.desy.de         */

-----------------------------------------------------------------------------
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