compressed printing to a laserjet from a shell program

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Apr 20 14:30:37 UTC 2005


On Wed, Apr 20, 2005 at 10:25:45AM -0400, Madison Kelly wrote:
>   I have a text-based accounting program running on Linux (clients and 
> server). I have an HP LaserJet 2430dtn setup and working wonderfully 
> from GUI apps and from the command line. What I need to do, and I have 
> limited experience printing from the shell, is get the shell program to 
> tell the printer to print in a compressed mode.
> 
>   I have created a second copy of the driver/queue to play with so the 
> main printer driver should be left alone and stay working letting me 
> experiment as I need to on the new second queue.
> 
>   The system is FC3 and the terminal is bash.

What do you mean by compressed mode?

If you mean like 2 pages on on sheet of paper, then if you have a good
printing system (nothing beats cupsys) then you can do:

lpr -o number-up=2

It also has lots of other options you can pass with -o.  It doesn't need
extra print queues for different options the way that used to be the
solution with the dumber print systems (like lpd/lpr/lprng etc).

I currently run a LaserJet 4100 at work using the driver:
HP LaserJet 4100 Foomatic/hpijs

Works very well.  I had some margin issues using raw postscript and the
PCL drivers.  hpijs works perfectly though.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list