Re: LPRng: PDF problem
From [EMAIL PROTECTED] Fri Jan 18 01:15:43 2002 Date: Fri, 18 Jan 2002 09:28:31 +0100 (NFT) From: Thies Meincke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: LPRng: PDF problem 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'' This is most likely created by ifhp; this is also confirmed by the status file in the spool directory: using model 'DEFAULT' at 08:20:51.940 pagecount using 'pjl info pagecount' at 08:20:51.942 setting up printer at 08:20:51.942 pagecounter 51821 after 1 attempts at 08:20:52.040 pagecounter 51821 at 08:20:52.040 sending job file at 08:20:52.040 starting transfer at 08:20:52.041 file program = '/usr/bin/file -' at 08:20:52.041 started FILE_UTIL- 'file' at 08:20:52.041 file information = 'pdf_document,_version_1.2' at 08:20:52.052 initial job type 'pdf_document,_version_1.2' at 08:20:52.052 decoded job type 'POSTSCRIPT' at 08:20:52.052 job type 'POSTSCRIPT', converter '/usr/bin/pdf2ps - -' at 08:20:52.052 started CONVERTER- 'pdf2ps' at 08:20:52.053 'CONVERTER' error msg 'AFPL Ghostscript 7.03: Unrecoverable error, exit code 1' at 08:20:52.156 converter done, output 271 bytes at 08:20:52.158 initial job type 'POSTSCRIPT' at 08:20:52.158 decoded job type 'POSTSCRIPT' at 08:20:52.158 job type 'POSTSCRIPT' at 08:20:52.158 transferring 271 bytes at 08:20:52.159 100 percent done at 08:20:52.159 data sent at 08:20:52.159 sent job file at 08:20:52.159 getting end using 'pjl job/eoj' at 08:20:52.159 code = 10024, 'waiting' at 08:20:53.099 end of job detected at 08:20:53.169 pagecounter 51821 after 1 attempts at 08:20:53.183 pagecounter 51821, pages 0 at 08:20:53.183 done at 08:20:53.183 pdf2ps invoked manually works fine (for all PDF files I tried), so it should be ok. As I am using the new AFPL Ghostscript version 7.3 the problem may be in the call of pdf2ps in ifhp (may be a change in the pdf2ps options or gs options in pdf2ps?). Any suggestions? Thies Meincke ++---+ | Thies Meincke | Tel. : +49/(0)40/42838-6355 | | Universitaet Hamburg | Fax : +49/(0)40/42838-6270 | | Regionales Rechenzentrum | E-mail: [EMAIL PROTECTED]| | Schlueterstr. 70 | URL : http://www.rrz.uni-hamburg.de/| | 20146 Hamburg | RRZ/Personal/TMeincke.html| | Germany| | ++---+ 1. Set up a shell environment and then rip out ALL of the environment options. Set path to: /bin:/usr/bin:/usr/local/bin 2. get a PDF file and invoke it with EXACTLY the same options as you see in the command. 3. Curse and swear when you find out that it does not work. 4. Read the man page, find the right combination of stuff. 5. save the current /etc/ifhp.conf file as /etc/ifhp.conf.orig 6. Edit the /etc/ifhp.conf file, set the pdf_converter option to the right value. 7. Print a job and see if it works Patrick - 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. -
Re: LPRng: PDF problem
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. -
Re: LPRng: PDF problem
If you are having troubles with pdf2ps, just read the pdf2ps script. It is simply a short program which runs gs. So, skip it, and just run gs directly with the appropriate parameters. Joel - 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. -
Re: LPRng: PDF problem
[EMAIL PROTECTED] wrote, in part: # 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 Hmm. I really don't know as much as I should about these things, so I could be wrong, but doesn't this allow for two jobs (perhaps for two different printers) to be doing this at the same time? You might want to generate a unique name for your temp file use that. -- - Dave Lovelace [EMAIL PROTECTED] [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. -
Re: LPRng: PDF problem
On Thu, Jan 24, 2002 at 09:52:16AM -0500, Dave Lovelace wrote: [EMAIL PROTECTED] wrote, in part: # 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 Hmm. I really don't know as much as I should about these things, so I could be wrong, but doesn't this allow for two jobs (perhaps for two different printers) to be doing this at the same time? You might want to generate a unique name for your temp file use that. Or use '/dev/stdin'. Tim. */ msg03382/pgp0.pgp Description: PGP signature
Re: LPRng: PDF problem
Hi, as far as I understand it, the pdf.tmp file is created in die spool directory of the queue. For each print job ifhp is used, one print job after the other. The pdf.tmp exists for short time while ifhp is running. So it should not be overwritten. Please correct me if I am wrong. Thies Meincke - 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. -
Re: LPRng: PDF problem
Yes, that's right... take care ~christoph On Fri, 25 Jan 2002, Thies Meincke wrote: Hi, as far as I understand it, the pdf.tmp file is created in die spool directory of the queue. For each print job ifhp is used, one print job after the other. The pdf.tmp exists for short time while ifhp is running. So it should not be overwritten. Please correct me if I am wrong. Thies Meincke - 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. -
LPRng: PDF problem
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'' This is most likely created by ifhp; this is also confirmed by the status file in the spool directory: using model 'DEFAULT' at 08:20:51.940 pagecount using 'pjl info pagecount' at 08:20:51.942 setting up printer at 08:20:51.942 pagecounter 51821 after 1 attempts at 08:20:52.040 pagecounter 51821 at 08:20:52.040 sending job file at 08:20:52.040 starting transfer at 08:20:52.041 file program = '/usr/bin/file -' at 08:20:52.041 started FILE_UTIL- 'file' at 08:20:52.041 file information = 'pdf_document,_version_1.2' at 08:20:52.052 initial job type 'pdf_document,_version_1.2' at 08:20:52.052 decoded job type 'POSTSCRIPT' at 08:20:52.052 job type 'POSTSCRIPT', converter '/usr/bin/pdf2ps - -' at 08:20:52.052 started CONVERTER- 'pdf2ps' at 08:20:52.053 'CONVERTER' error msg 'AFPL Ghostscript 7.03: Unrecoverable error, exit code 1' at 08:20:52.156 converter done, output 271 bytes at 08:20:52.158 initial job type 'POSTSCRIPT' at 08:20:52.158 decoded job type 'POSTSCRIPT' at 08:20:52.158 job type 'POSTSCRIPT' at 08:20:52.158 transferring 271 bytes at 08:20:52.159 100 percent done at 08:20:52.159 data sent at 08:20:52.159 sent job file at 08:20:52.159 getting end using 'pjl job/eoj' at 08:20:52.159 code = 10024, 'waiting' at 08:20:53.099 end of job detected at 08:20:53.169 pagecounter 51821 after 1 attempts at 08:20:53.183 pagecounter 51821, pages 0 at 08:20:53.183 done at 08:20:53.183 pdf2ps invoked manually works fine (for all PDF files I tried), so it should be ok. As I am using the new AFPL Ghostscript version 7.3 the problem may be in the call of pdf2ps in ifhp (may be a change in the pdf2ps options or gs options in pdf2ps?). Any suggestions? Thies Meincke ++---+ | Thies Meincke | Tel. : +49/(0)40/42838-6355 | | Universitaet Hamburg | Fax : +49/(0)40/42838-6270 | | Regionales Rechenzentrum | E-mail: [EMAIL PROTECTED]| | Schlueterstr. 70 | URL : http://www.rrz.uni-hamburg.de/| | 20146 Hamburg | RRZ/Personal/TMeincke.html| | Germany| | ++---+ - 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. -