hi,
if I remember it well the problem is that pdf2ps does not read from
<STDIN>. What I did:
in ifhp.conf:
file_output_match=[
...
*PDF* ps /usr/libexec/filters/pdf
...
]
[printsrv2] ~lp/request/l00ps4 $ cat /usr/libexec/filters/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
#PATH="$PATH:/usr/local/bin"
#export PATH
# 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 and 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
hope this helps
regards
~christoph
On Wed, 23 Jan 2002, Johan Bengtsson wrote:
> On Fri, 18 Jan 2002, Thies Meincke wrote:
>
> > Hi,
> >
> > I got a problem printing PDF files on a Linux system using LPRNG
> > 3.8.2 and IFHP 3.5.2. The PDF file is not printed, just a error
> > message on a single sheet of paper:
> >
> >
> > Conversion failed for type 'pdf_document,_version_1.2'
> > Using '/usr/bin/pdf2ps'
> > Error: 'Converter exited with status 'exit status 1''
>
> Exactly the same problem here with lprng 3.8.1 & ifhp 3.5.2.
> Has anyone come with a solution for this problem?
>
> Best regards,
> Johan Bengtsson
>
> --
> http://www.dd.chalmers.se/~elijah/
>
>
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------