]>
git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/pstoraster
3 # "$Id: pstoraster 4493 2005-02-18 02:09:53Z mike $"
5 # CUPS filter script for Ghostscript.
7 # Copyright 2001-2005 by Easy Software Products.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 # Installation directories...
27 bindir
=${exec_prefix}/bin
29 # Set the library/font path...
30 GS_FONTPATH
="$CUPS_FONTPATH"
33 # Options we use with Ghostscript...
34 gsopts
="-dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE -dBATCH "
35 gsopts
="$gsopts -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr"
37 # See if we have a profile=n,n,n,n,n,n,n,n,n,n,n option...
42 profile
="-scupsProfile=`echo $option | awk -F= '{print $2}'`"
47 # Now run Ghostscript...
48 $bindir/gs
$gsopts -sOUTPUTFILE="%stdout" $profile $6
51 # End of "$Id: pstoraster 4493 2005-02-18 02:09:53Z mike $".