Mail Archives: djgpp/2001/05/13/04:22:32
On Sun, 13 May 2001, taupin wrote:
> > You shouldn't need any lpr on DOS, just invoke Ghostscript and tell it
> > to output to the printer device (doesn't it do that by default?).
>
> No. By default, it displays on the screen.
>
> Thus I change my question:
>
> 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.
(If you are on Windows, use gswin32c instead of gs.)
- Raw text -