Here are the command lines I am running with Ghostscript. I have two of them. One uses gsprint which is what we use for all types of printer drivers. The other one is specifically used for PCL print drivers. Let me know if you see faults in these or ways in which we can optimize. Thanks, James All Print Drivers: \gsprint.exe -ghostscript \gswin32c.exe -I -printer -noquery [-color|-mono] PCL Print Drivers: \gswin32c.exe -sDEVICE= -dNOPAUSE -dBATCH -sOutputFile="%printer%" James James Prolizo Senior Software Developer EnvisionWare, Inc.
I don't quite follow what you mean by "can we optimize". As far as faults, if it works, then there aren't any faults, but in your second example with 'gswin32c.exe' I assume that you have a specific PCL printer driver that you specify following the -sDEVICE= such as -sDEVICE=ljet4 or -sDEVICE=pxlmono. Note that the ljet4 driver, or the gsprint approach will always render the page as a complete image. The gsprint approach will then pass the image to the specified printer driver (using GDI). Output of PCL such as from the ljet4 DEVICE to %printer% will format the PCL (or PXL) using Ghostscript and pass it through to the printer's port. The pxlmono and pxlcolor DEVICE family in Ghostscript generate paths and other graphics constructs, so _may_ result in a smaller file that will print faster (particularly for simple pages). Please let me know if we have addressed your question.
Ray, What I was hoping by optimizing is finding out if this is the correct way and the fastest way to print using GhostScript. You are correct in that after the -sDEVICE= I do have either pxlmono or pxlcolor. Is there another way i can print using GhostScript (gswin32c) that will get me the ability to print to any printer rather than using gsprint. Or is gsprint the more appropriate way to use it? Hope this information helps, James
Ghostscript doesn't do printer detection and driver configuration, so to print to *any* printer you need a wrapper program like gsprint. If you know you're talking to a class of printers (Like pxlmono for monochrome pcl printers) you can call gs directly and use that -sDEVICE option.
I've been in frequent contact with James on these and other issues. Closing the bvg