Bug 690238 - Help with Command Line Parameters
Summary: Help with Command Line Parameters
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 8.63
Hardware: PC Windows XP
: P2 major
Assignee: Ray Johnston
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 06:45 UTC by James Prolizo
Modified: 2009-04-30 05:58 UTC (History)
0 users

See Also:
Customer: 351
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Prolizo 2009-01-19 06:45:21 UTC
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.
Comment 1 Ray Johnston 2009-01-22 09:34:34 UTC
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.
Comment 2 James Prolizo 2009-01-27 08:44:46 UTC
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
Comment 3 Ralph Giles 2009-01-27 09:03:53 UTC
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.
Comment 4 Ray Johnston 2009-03-17 14:44:23 UTC
I've been in frequent contact with James on these and other issues. Closing
the bvg