-README.pstoraster - 04/23/2002
+README.pstoraster - 07/20/2003
------------------------------
INTRODUCTION
This directory contains the CUPS "driver" for GNU
Ghostscript, the pstoraster script that is used to run
Ghostscript as a CUPS filter, the pstoraster.convs file that
- defines the PostScript to raster filter for CUPS drivers,
- and a makefile fragment that adds the CUPS driver.
+ defines the PostScript to raster filter for CUPS drivers, a
+ makefile fragment that adds the CUPS driver, and the wrapper
+ script (pstopxl) and PPD files (pxl*.ppd) to support PCL
+ XL/PCL 6 printers.
This software is included with both the CUPS and ESP
- Ghostscript 7.05.1 distributions. While the files will also
+ Ghostscript 7.07.1 distributions. While the files will also
compile with earlier versions of Ghostscript, there are bugs
in older versions of GNU Ghostscript which may cause
problems.
the cupsd process, either by sending the HUP signal to the
process or using the init script supplied with CUPS.
+ To use the PCL XL/PCL 6 drivers, make sure that you also
+ configure Ghostscript with the pxlmono and pxlcolor drivers.
+
COMPILING GNU GHOSTSCRIPT WITH THE CUPS DRIVER
Before configuring GNU Ghostscript, first copy this directory
to the GNU Ghostscript source directory, e.g.:
- cp -r pstoraster /some/path/to/ghostscript-7.05
+ cp -r pstoraster /some/path/to/ghostscript-7.07
Next apply the patch:
- cd /some/path/to/ghostscript-7.05
- patch -p1 pstoraster/ghostscript-705.patch
+ cd /some/path/to/ghostscript-7.07
+ patch -p1 pstoraster/ghostscript-707.patch
Finally, run the configure script to use the new Ghostscript
with CUPS:
Once you have compiled and installed Ghostscript, restart
the cupsd process, either by sending the HUP signal to the
process or using the init script supplied with CUPS.
+
+ To use the PCL XL/PCL 6 drivers, make sure that you also
+ configure Ghostscript with the pxlmono and pxlcolor drivers.
#
-# "$Id: cups.mak,v 1.1.2.3 2002/05/13 16:21:35 mike Exp $"
+# "$Id: cups.mak,v 1.1.2.4 2003/07/20 22:54:43 mike Exp $"
#
# CUPS driver makefile for Ghostscript.
#
-# Copyright 2001-2002 by Easy Software Products.
+# Copyright 2001-2003 by Easy Software Products.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
CUPSSERVER= $(install_prefix)`cups-config --serverbin`
CUPSCONFIG= $(install_prefix)`cups-config --serverroot`
+CUPSDATA= $(install_prefix)`cups-config --datadir`
$(DD)cups.dev: $(cups_) $(GLD)page.dev
$(ADDMOD) $(DD)cups -lib cupsimage -lib cups
install-cups:
-mkdir -p $(CUPSSERVER)/filter
$(INSTALL_PROGRAM) pstoraster/pstoraster $(CUPSSERVER)/filter
+ $(INSTALL_PROGRAM) pstoraster/pstopcl6 $(CUPSSERVER)/filter
-mkdir -p $(CUPSCONFIG)
$(INSTALL_DATA) pstoraster/pstoraster.convs $(CUPSCONFIG)
+ -mkdir -p $(CUPSDATA)/model
+ $(INSTALL_DATA) pstoraster/pxlcolor.ppd $(CUPSDATA)/model
+ $(INSTALL_DATA) pstoraster/pxlmono.ppd $(CUPSDATA)/model
#
-# End of "$Id: cups.mak,v 1.1.2.3 2002/05/13 16:21:35 mike Exp $".
+# End of "$Id: cups.mak,v 1.1.2.4 2003/07/20 22:54:43 mike Exp $".
#
/*
- * "$Id: gdevcups.c,v 1.43.2.18 2003/07/13 13:07:39 mike Exp $"
+ * "$Id: gdevcups.c,v 1.43.2.19 2003/07/20 22:54:44 mike Exp $"
*
* GNU Ghostscript raster output driver for the Common UNIX Printing
* System (CUPS).
/*
- * End of "$Id: gdevcups.c,v 1.43.2.18 2003/07/13 13:07:39 mike Exp $".
+ * End of "$Id: gdevcups.c,v 1.43.2.19 2003/07/20 22:54:44 mike Exp $".
*/
#!/bin/sh
#
-# "$Id: pstopxl.in,v 1.1 2003/07/20 22:47:42 mike Exp $"
+# "$Id: pstopxl.in,v 1.1.2.1 2003/07/20 22:54:44 mike Exp $"
#
# CUPS PCL XL/PCL 6 filter script for Ghostscript.
#
$bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" "$ifile"
#
-# End of "$Id: pstopxl.in,v 1.1 2003/07/20 22:47:42 mike Exp $".
+# End of "$Id: pstopxl.in,v 1.1.2.1 2003/07/20 22:54:44 mike Exp $".
#
#!/bin/sh
#
-# "$Id: pstoraster,v 1.1.2.3 2002/04/22 19:49:20 mike Exp $"
+# "$Id: pstoraster,v 1.1.2.4 2003/07/20 22:54:45 mike Exp $"
#
# CUPS filter script for Ghostscript.
#
-# Copyright 2001-2002 by Easy Software Products.
+# Copyright 2001-2003 by Easy Software Products.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
$bindir/gs $gsopts -sOUTPUTFILE="%stdout" $profile $6
#
-# End of "$Id: pstoraster,v 1.1.2.3 2002/04/22 19:49:20 mike Exp $".
+# End of "$Id: pstoraster,v 1.1.2.4 2003/07/20 22:54:45 mike Exp $".
#
#
-# "$Id: pstoraster.convs,v 1.1.2.2 2002/04/21 16:11:29 mike Exp $"
+# "$Id: pstoraster.convs,v 1.1.2.3 2003/07/20 22:54:45 mike Exp $"
#
# MIME converts file for Ghostscript.
#
-# Copyright 1997-2002 by Easy Software Products.
+# Copyright 1997-2003 by Easy Software Products.
#
# These coded instructions, statements, and computer programs are the
# property of Easy Software Products and are protected by Federal
application/vnd.cups-postscript application/vnd.cups-raster 100 pstoraster
#
-# End of "$Id: pstoraster.convs,v 1.1.2.2 2002/04/21 16:11:29 mike Exp $".
+# End of "$Id: pstoraster.convs,v 1.1.2.3 2003/07/20 22:54:45 mike Exp $".
#
#!/bin/sh
#
-# "$Id: pstoraster.in,v 1.3.2.2 2003/01/07 18:27:13 mike Exp $"
+# "$Id: pstoraster.in,v 1.3.2.3 2003/07/20 22:54:45 mike Exp $"
#
-# CUPS filter script for Ghostscript.
+# CUPS raster filter script for Ghostscript.
#
# Copyright 2001-2003 by Easy Software Products.
#
export GS_LIB
# Options we use with Ghostscript...
-gsopts="-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH "
+gsopts="-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH"
gsopts="$gsopts -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr"
# See if we have a profile=n,n,n,n,n,n,n,n,n,n,n option...
ifile="$6"
fi
-echo DEBUG: Running $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c "$profile" $ifile 1>&2
+echo INFO: Starting ESP Ghostscript 7.07.1... 1>&2
+echo DEBUG: Running $bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c"$profile" "$ifile" 1>&2
# Now run Ghostscript...
-$bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c "$profile" $ifile
+$bindir/@GS@ $gsopts -sOUTPUTFILE="%stdout" -c"$profile" "$ifile"
#
-# End of "$Id: pstoraster.in,v 1.3.2.2 2003/01/07 18:27:13 mike Exp $".
+# End of "$Id: pstoraster.in,v 1.3.2.3 2003/07/20 22:54:45 mike Exp $".
#
*PPD-Adobe: "4.3"
*%
-*% "$Id: pxlcolor.ppd,v 1.1 2003/07/20 22:47:42 mike Exp $"
+*% "$Id: pxlcolor.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $"
*%
*% Sample color PCL XL/PCL 6 driver PPD file for the Common UNIX
*% Printing System (CUPS).
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
*Font ZapfDingbats: Special "(001.004S)" Standard ROM
*%
-*% End of "$Id: pxlcolor.ppd,v 1.1 2003/07/20 22:47:42 mike Exp $".
+*% End of "$Id: pxlcolor.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $".
*%
*PPD-Adobe: "4.3"
*%
-*% "$Id: pxlmono.ppd,v 1.1 2003/07/20 22:47:42 mike Exp $"
+*% "$Id: pxlmono.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $"
*%
*% Sample monochrome PCL XL/PCL 6 driver PPD file for the Common UNIX
*% Printing System (CUPS).
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
*Font ZapfDingbats: Special "(001.004S)" Standard ROM
*%
-*% End of "$Id: pxlmono.ppd,v 1.1 2003/07/20 22:47:42 mike Exp $".
+*% End of "$Id: pxlmono.ppd,v 1.1.2.1 2003/07/20 22:54:45 mike Exp $".
*%