Mail Archives: djgpp/2001/05/13/11:09:48
Eli Zaretskii wrote:
>
> On Sun, 13 May 2001, taupin wrote:
> > Has somebody a procedure to call GhostScript and tell it to print the
> > output on a printer (specifying of course the printer resolution, the
> > printer type (ljet4, laserjet...), the printer channel (lpt1: lpt2:
> > etc.)?
>
> gs -q -dNOPAUSE -sDEVICE=ljet4 -rNNNxMMM -sOutputFile=LPT2
>
> You will have to figure out the NNNxMMM arguments (the resolution)
> yourself, using the Ghostscript docs and your printer's manual. It's
> probably 600xSOMETHING.
Works but with 3 drawbacks:
1. does not close the window at end (I mut type "quit")
2. does not accept wild chars (to proceed several files) as does "lpr"
3. does not accept gzipped files as does "lpr".
This means that I should write a small program in C/DJGPP or F77/DJGPP
to handle a number of files and gunzip them it suffix .gz is present.
But perhaps somebody did it already...
>
> (If you are on Windows, use gswin32c instead of gs.)
--
------------------------------------------------------------------------
Daniel Taupin, 91400 ORSAY - France
E-mail= mailto:taupin AT lps DOT u-psud DOT fr
Home/fax: (33)1.60.10.26.44. Work: (33)1.69.15.60.79, fax
(33)1.69.15.60.86
- Raw text -