pcl to ps conversion

Diego diego.denolf at gmail.com
Sat Oct 22 07:17:39 PDT 2005


Hello,

At work, we have a very old application that prints with inbedded pcl commands. I cannot get this to work properly. (for instance: sometimes a page has 72 lines of text, for another report, the output should have 92 lines, there is also an issue with the fonts used)

I hoped i could solve the issue with the GhostPCL package. http://www.artifex.com/downloads/

-i builded a rpm for my suse 10 system
-i made a wrapper script pcl2ps:

#!/bin/bash

# enable "set -x" for debug info in /var/log/cups/error_log
set -x

# set inputfile to where the input comes from
inputfile="-"
[ -n "$6" ] && inputfile="$6"

# output PostScript
pcl6  -dNOPAUSE -sDEVICE=pswrite -sOutputFile=- $inputfile

- i adapted a ppd file and changed the cupsfilter line to:
*cupsFilter:    "*/*  0 /usr/lib/cups/filter/pcl2ps"

When printing the pcl file to that queue i get following error:
I [22/Oct/2005:15:15:50 +0200] Job 34 queued on 'testpcl2ps' by 'root'.
E [22/Oct/2005:15:15:50 +0200] Unable to convert file 0 to printable format for job 34!
I [22/Oct/2005:15:15:50 +0200] Hint: Do you have ESP Ghostscript installed?

Could someone point me a the right direction to solve this issue?
THANKS

Diego






More information about the cups mailing list