I'm using php to run ghostscript from the command line on a Win2K server. The problem is that it automatically uses the default printer, even when I set -sOutputFile to be a different printer that is vpn'ed to the machine.
The code looks something like:
exec("c:\gs\gs7.04\bin\gswin32c.exe -Ic:\gs\gs7.04\lib;c:\gs\fonts -sDEVICE=ljet4 -dNOPAUSE "c:\Program Files\Apache Group\Apache\htdocs\tmp\this.pdf" -sOutputFile="\spool\hp" -c quit")
I've even tried running this command directly from the command line and it still prints to the default printer. Any ideas?
Thanks!