[1292] in linux-announce channel archive

home help back first fref pref prev next nref lref last post

HPMODESET: HP PJL printer control utility

daemon@ATHENA.MIT.EDU (Lars Wirzenius)
Tue Nov 7 10:01:45 1995

Date: Mon, 6 Nov 1995 21:52:25 +0200
From: Lars Wirzenius <wirzeniu@cc.helsinki.fi>
To: linux-announce@vger.rutgers.edu
Reply-To: linux-announce-owner@vger.rutgers.edu

From: Glenn Maughan <glennm@hornet.sd.monash.edu.au>
Subject: HPMODESET: HP PJL printer control utility
Approved: linux-announce@news.ornl.gov (Lars Wirzenius)
Newsgroups: comp.os.linux.announce
Followup-to: comp.os.linux.misc
Organization: ?

-----BEGIN PGP SIGNED MESSAGE-----

HPMODESET v1.2 
- --------------
6 November 1995

Copyright (c) Glenn Maughan 1995

Many of the newer model Hewlett-Packard printers do not have a control
panel to change printer settings.  In a Windows/DOS environment you
are typically given drivers that allow you to change the printer
settings.  However, in a Unix environment such as Linux you usually
do not get such nice drivers!  I purchased a new LaserJet printer and
found I could not control it completely under Linux.  To reduce my
frustrations I developed this utility.

Hpmodeset provides a simple interface for changing printer control
settings on printers that support the Hewlett-Packard Printer Job
Language (PJL).  Hpmodeset will encapsulate any number of print files,
such as PostScript or PCL, within PJL control codes.

The utility currently supports only a subset of PJL commands.  The
command line switches include:

  -economode/(-noeconomode)      Economode on or off
  -manualfeed/(-nomanualfeed)    manual paper feeding on or off
  (-portrait)/-landscape         use portrait or landscape orientation
  -noret/-lightret/              Resolution Enhancement technology setting
         (-mediumret)/-darkret
  -draftquality/                 the print quality for the current job
         (-normalquality)/
         -highquality
  -copies (1)                    number of copies to print
  -resolution (600)              printer resolution to use (300dpi or 600dpi)
  -density (3)                   toner density (1 to 5)

The options/values in parenthesis are the default values.

Following any printer control options should be a list of files to
encapsulate.  For example, to print the files `test.ps' and `test.pcl'
in economode with manual paper feeds, the following hpmodeset command
would perform the task:

	$ hpmodeset -economode -manualfeed test.ps test.pcl | lpr

Hpmodeset can also read from stdin using `-' as the file marker.  The
following command would be the ultimate in paper and toner saving
print commands:

	$ psnup -2 test.ps | hpmodeset -economode - | lpr

(psnup is available in the excellent psutils package by Angus Duggan
found on many Unix utility ftp sites.  Sorry I can't remember the site
I found it on, try archie!)

FEEDBACK
- --------

Please send all bugs, suggestions and support to:

	Glenn Maughan
	glennm@insect.sd.monash.edu.au 

The ftp site for Hpmodeset is:

	ftp://hornet.sd.monash.edu.au/pub/hpmodeset



-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBMJ5l7oQRll5MupLRAQGHlAQAnanTyQmHExRWMYuKL2s+p6wkW3176wmG
zrP+CaWbWwxTtFrase/qSkC93Y5160Tx1lN+rR8AerOJju0GvKrJi7pF1H5lzfOO
0XOF/GReM5+LNGdUD5gHQfuXNVWrS3h7rvzREBcYcMNGsOR60xtUK4ogLIThVOJo
Y13+epk2dBU=
=89x9
-----END PGP SIGNATURE-----

-- 
This article has been digitally signed by the moderator, using PGP.
Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature.
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember a short description of the software and the LOCATION.


home help back first fref pref prev next nref lref last post